tazpkg annotate modules/set-release @ rev 846
Remove "busybox" "prefixes" (thanks llev)
We used "busybox wget", etc. to be sure we called Busybox's "wget", not any other "wget". Workaround already done in "getenv" module.
We used "busybox wget", etc. to be sure we called Busybox's "wget", not any other "wget". Workaround already done in "getenv" module.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Oct 09 13:14:01 2015 +0300 (2015-10-09) |
parents | |
children |
rev | line source |
---|---|
al@844 | 1 #!/bin/sh |
al@844 | 2 # TazPkg - Tiny autonomous zone packages manager, hg.slitaz.org/tazpkg |
al@844 | 3 # set-release - TazPkg module |
al@844 | 4 # Change current release and upgrade packages |
al@844 | 5 |
al@844 | 6 |
al@844 | 7 # Connect function libraries |
al@844 | 8 . /lib/libtaz.sh |
al@844 | 9 |
al@844 | 10 # Get TazPkg working environment |
al@844 | 11 . @@MODULES@@/getenv |
al@844 | 12 |
al@844 | 13 |
al@844 | 14 |
al@844 | 15 |
al@844 | 16 echo "$1" > "$root/etc/slitaz-release" |
al@844 | 17 |
al@844 | 18 rm "$PKGS_DB/mirror" |
al@844 | 19 |
al@844 | 20 tazpkg recharge && tazpkg upgrade |
al@844 | 21 |
al@844 | 22 # Install missing depends |
al@844 | 23 cd "$INSTALLED" |
al@844 | 24 |
al@844 | 25 for dep in $(awk -F$'\t' '{print $8}' $PKGS_DB/installed.info | tr ' ' '\n' | sort -u); do |
al@844 | 26 [ ! -d "$dep" ] && tazpkg get-install "$dep" |
al@844 | 27 done |