tazpkg diff 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
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/modules/set-release	Fri Dec 22 00:02:54 2017 +0200
     1.3 @@ -0,0 +1,27 @@
     1.4 +#!/bin/sh
     1.5 +# TazPkg - Tiny autonomous zone packages manager, hg.slitaz.org/tazpkg
     1.6 +# set-release - TazPkg module
     1.7 +# Change current release and upgrade packages
     1.8 +
     1.9 +
    1.10 +# Connect function libraries
    1.11 +. /lib/libtaz.sh
    1.12 +
    1.13 +# Get TazPkg working environment
    1.14 +. @@MODULES@@/getenv
    1.15 +
    1.16 +
    1.17 +
    1.18 +
    1.19 +echo "$1" > "$root/etc/slitaz-release"
    1.20 +
    1.21 +rm "$PKGS_DB/mirror"
    1.22 +
    1.23 +tazpkg recharge && tazpkg upgrade
    1.24 +
    1.25 +# Install missing depends
    1.26 +cd "$INSTALLED"
    1.27 +
    1.28 +for dep in $(awk -F$'\t' '{print $8}' $PKGS_DB/installed.info | tr ' ' '\n' | sort -u); do
    1.29 +	[ ! -d "$dep" ] && tazpkg get-install "$dep"
    1.30 +done