summaryrefslogtreecommitdiffstats
path: root/root/posodobi.sh
diff options
context:
space:
mode:
Diffstat (limited to 'root/posodobi.sh')
-rwxr-xr-xroot/posodobi.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/root/posodobi.sh b/root/posodobi.sh
index c150fb5..e490d84 100755
--- a/root/posodobi.sh
+++ b/root/posodobi.sh
@@ -26,8 +26,12 @@ a=
grep "no-sync" <<<"$@" || /usr/sbin/emaint sync --auto
grep "no-ask" <<<"$@" || a=--ask
grep "colo" <<<"$@" && f="$f --color y"
-[ `hostname` = varovalka ] && f="$f --exclude=media-libs/mesa"
-emerge --tree --verbose --update $f $a --newuse --changed-use --backtrack 30 --deep --with-bdeps=y --rebuilt-binaries --autounmask --autounmask-write --autounmask-backtrack=y @world
+[ `hostname` = varovalka ] && f="$f" # --exclude=media-libs/mesa
+swap=/mnt/slu/a/tmp/swap
+[ -f $swap ] && swapon $swap
+trap "swapoff $swap" EXIT
+emerge --tree --verbose --update $f $a --newuse --changed-use --backtrack 30 --deep --with-bdeps=y --rebuilt-binaries --autounmask --autounmask-write --autounmask-backtrack=y @world # --exclude=sci-electronics/kicad
emerge --verbose $f --autounmask-write --autounmask @preserved-rebuild
emerge --depclean $f
/root/linux/dist.sh
+dmenu_path > /dev/null # update cache