[builder sabayon-buildpackages] adding SKIP_SYNC and WEBRSYNC to control portage sync

This commit is contained in:
mudler
2016-03-06 20:04:52 +01:00
parent f35a2e14cd
commit 2c38ae1c0c
2 changed files with 13 additions and 2 deletions
+11 -2
View File
@@ -18,6 +18,8 @@ my $equo_mirrorsort = $ENV{EQUO_MIRRORSORT} // 1;
my $entropy_repository = $ENV{ENTROPY_REPOSITORY} // "main"; # Can be weekly, main, testing
my $artifacts_folder = $ENV{ARTIFACTS_DIR};
my $dep_scan_depth = $ENV{DEPENDENCY_SCAN_DEPTH} // 2;
my $skip_sync = $ENV{SKIP_SYNC} // 0;
my $webrsync = $ENV{WEBRSYNC} // 0;
my $make_conf = $ENV{MAKE_CONF};
@@ -172,8 +174,15 @@ auto-sync = no' > /etc/portage/repos.conf/local.conf
system("mkdir -p /usr/portage/distfiles/git3-src");
# sync portage and overlays
system("layman -S;emerge --sync");
unless($skip_sync == 1){
# sync portage and overlays
system("layman -S");
if($webrsync == 1){
system("emerge-webrsync");
} else {
system("emerge --sync");
}
}
# preparing for MOAR automation
qx|eselect profile set $profile|;