Nimbin[12]?Mirrors & Forks / jhalfs / commits / 4dfe8f9

jhalfs git · trunk

jhalfs LFS build automation (mirror)

lfs mirror bash · first commit 2005-09-11 · last commit 2024-02-13 (2 years ago) · synced 3 days ago · upstream: git.linuxfromscratch.org/jhalfs

Python 78.4% Shell 19.8% Makefile 1.8%
git clone https://git.christianimmanuel.de/mirrors-forks/jhalfs.gitwget https://git.christianimmanuel.de/mirrors-forks/jhalfs/archive/jhalfs.tar.gz

gen_pkg_book: fixes for dependency checkings

Pierre Labastie · 2023-03-23 21:21 · 4dfe8f99c42a2041657305493103a2e0da77b688

Fix a typo in function definition
use sudo for porg -r and porgball -e
 BLFS/gen_pkg_book.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/BLFS/gen_pkg_book.sh b/BLFS/gen_pkg_book.sh
index e953013..e4dc8bb 100755
--- a/BLFS/gen_pkg_book.sh
+++ b/BLFS/gen_pkg_book.sh
@@ -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
 }