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