spk rev 94
spk-up: check_root
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri May 25 16:35:18 2012 +0200 (2012-05-25) |
parents | 59147c9f5113 |
children | c74dc687b9a3 |
files | spk-up |
line diff
1.1 --- a/spk-up Fri May 25 16:19:11 2012 +0200 1.2 +++ b/spk-up Fri May 25 16:35:18 2012 +0200 1.3 @@ -47,7 +47,6 @@ 1.4 1.5 # Recharges all list from one mirror or all mirrors 1.6 recharge_lists() { 1.7 - check_root 1.8 newline 1.9 boldify $(gettext "Updating packages lists") 1.10 separator 1.11 @@ -186,13 +185,15 @@ 1.12 do 1.13 case "$arg" in 1.14 *usage|*help) usage ;; 1.15 - --list) 1.16 - recharge_lists 1.17 + --list) 1.18 + check_root 1.19 + recharge_lists 1.20 newline && exit 0 ;; 1.21 --*) continue ;; 1.22 *) 1.23 - pkg=$arg 1.24 + pkg="$arg" 1.25 system=no 1.26 + check_root 1.27 [ "$count" == 0 ] && up_headers 1.28 if [ -f "$installed/$pkg/receipt" ]; then 1.29 count=$(($count +1)) 1.30 @@ -227,6 +228,7 @@ 1.31 build_count=0 1.32 blocked_count=0 1.33 1.34 +check_root 1.35 recharge_lists 1.36 up_headers 1.37 cd $installed