summaryrefslogtreecommitdiffstats
path: root/scripts/bootstrap/builder_sync.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/bootstrap/builder_sync.sh')
-rw-r--r--scripts/bootstrap/builder_sync.sh20
1 files changed, 11 insertions, 9 deletions
diff --git a/scripts/bootstrap/builder_sync.sh b/scripts/bootstrap/builder_sync.sh
index 7a71377..5c5c24b 100644
--- a/scripts/bootstrap/builder_sync.sh
+++ b/scripts/bootstrap/builder_sync.sh
@@ -7,14 +7,6 @@ cd "/darklin/darklin4" && git pull
# Update portage
emerge --sync && eix-sync
-emerge -1 portage
-
-# Update extra dist files
-lftp http://darksoft.org/darklin/ << EOF
-lcd /var/cache/
-mirror -c distfiles
-bye
-EOF
# Skip binary packages
rm -f /etc/portage/sets/desktop-apps-bin
@@ -29,6 +21,16 @@ bash /etc/portage/scripts/gen-world-sets
# update layman
#bash /etc/portage/scripts/bootstrap/layman_reinit.sh
-
# reconfigure kernel if necessary
[ -f /usr/src/linux/.config ] || yes "" | make -C /usr/src/linux oldconfig
+
+emerge -u1 portage
+
+# Update extra dist files
+[ ! -f /usr/bin/lftp ] && emerge -1 lftp
+
+lftp http://darksoft.org/darklin/ << EOF
+lcd /var/cache/
+mirror -c distfiles
+bye
+EOF