[builder/sabayon-buildpackages] adding support for equo (un)mask

This commit is contained in:
mudler
2016-04-11 21:27:33 +02:00
parent f81e90d555
commit b089771d17
2 changed files with 16 additions and 2 deletions
+14 -2
View File
@@ -29,16 +29,18 @@ my $prune_virtuals = $ENV{PRUNE_VIRTUALS} // 0;
my $repository_name = $ENV{REPOSITORY_NAME};
my $enman_add_self = $ENV{ENMAN_ADD_SELF} // 1;
my $build_injected_args = $ENV{BUILD_INJECTED_ARGS};
my $equo_masks = $ENV{EQUO_MASKS};
my $equo_unmasks = $ENV{EQUO_UNMASKS};
my $make_conf = $ENV{MAKE_CONF};
my @overlays;
my $help=0;
my $help = 0;
GetOptions(
'layman|overlay:s{,}' => \@overlays,
'equo|install:s{,}' => \@equo_install,
'equorm|remove:s{,}' => \@equo_remove,
'help|?' => \$help
'help|?' => \$help
);
help() if $help;
@@ -306,6 +308,16 @@ if ($use_equo) {
}
}
# best effort -B
if ($equo_masks) {
system("equo mask $_") for ( split( / /, $equo_masks ) );
}
# best effort -B
if ($equo_unmasks) {
system("equo unmask $_") for ( split( / /, $equo_unmasks ) );
}
say "*** Ready to compile, finger crossed ***";
system("emerge --info")