Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 411c142f00 | |||
| 9446715e1a |
@@ -412,14 +412,26 @@ if ($use_equo) {
|
||||
say "Devkit version:";
|
||||
system("equo s -vq app-misc/sabayon-devkit");
|
||||
|
||||
my $enman_list_output = qx|enman list --installed -q|;
|
||||
chomp($enman_list_output);
|
||||
my @installed_enman_repos = split(/\n/, $enman_list_output);
|
||||
|
||||
if ( $enman_repositories and $enman_repositories ne "" ) {
|
||||
my @enman_toadd = split( / /, $enman_repositories );
|
||||
safe_call("enman add $_") for @enman_toadd;
|
||||
for my $enman_add (@enman_toadd) {
|
||||
if ! grep ($enman_add, @installed_enman_repos) {
|
||||
safe_call("enman add $_");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( $remove_enman_repositories and $remove_enman_repositories ne "" ) {
|
||||
my @enman_toremove = split( / /, $remove_enman_repositories );
|
||||
system("enman remove $_") for @enman_toremove;
|
||||
for my $enman_remove (@enman_toremove) {
|
||||
if grep ($enman_remove, @installed_enman_repos) {
|
||||
safe_call("enman remove $_");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
system("enman add $repository_name")
|
||||
|
||||
Reference in New Issue
Block a user