tazpkg annotate modules/set-release @ rev 955

modules/search: allow search file with dash at start: tazpkg -sf "-spi"
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Dec 22 00:02:54 2017 +0200 (2017-12-22)
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