wok-current view tazpkg/stuff/getall @ rev 25686

Rework tazpkg getall/checkspace feature
author Stanislas Leduc <shann@slitaz.org>
date Fri Mar 15 07:15:01 2024 +0000 (9 months ago)
parents
children eba4c40d3fd5
line source
1 #!/bin/sh
3 # Fetch all pkgs upgrade
4 fetchall_pkgs()
5 {
6 cd $SAVE_CACHE_DIR/$SLITAZ_RELEASE/packages
7 for pkg in $(cat "$UP_LIST"); do
8 lpkg=${1//-/\-}
9 # Get depends of package
10 deps=$(grep "^${pkg//-\-}$(printf '\t')" /var/lib/tazpkg/packages.info | awk -F "\t" '{print $8}')
11 for dep in $deps; do
12 if [ ! -d /var/lib/tazpkg/installed/$dep ]; then
13 tazpkg get $dep
14 fi
15 done
16 tazpkg get $pkg
17 done
18 cd - > /dev/null
19 }