[jhalfs] 01/02: gen_pkg_book: fixes for dependency checkings

"Git Owner" ([email protected] via alfs-discuss Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.automated
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch trunk
in repository jhalfs.

commit 4dfe8f99c42a2041657305493103a2e0da77b688
Author: Pierre Labastie <[email protected]>
AuthorDate: Thu Mar 23 22:21:26 2023 +0100

    gen_pkg_book: fixes for dependency checkings
    
    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
 }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

-- 
http://lists.linuxfromscratch.org/sympa/info/alfs-discuss
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.