gen_pkg_book: fixes for dependency checkings

Fix a typo in function definition
use sudo for porg -r and porgball -e
This commit is contained in:
Pierre Labastie 2023-03-23 22:21:26 +01:00
parent 1bf09c15a7
commit 4dfe8f99c4
1 changed files with 3 additions and 3 deletions

View File

@ -321,13 +321,13 @@ set -e
VERSIONED_LIST=
for p in $LIST_UNNEEDED; do
VERSIONED_LIST="\$VERSIONED_LIST \$(porg \$p)"
porg -rb \$p
sudo porg -rb \$p
done
# Function to restore packages
restore_pack {
restore_pack () {
for p in \$VERSIONED_LIST; do
porgball -e -l /var/lib/packages/\${p}.porg.tar.gz
sudo porgball -e -l /var/lib/packages/\${p}.porg.tar.gz
done
}