[jhalfs] branch trunk updated: Fix an error when not downloading packages

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

git pushed a commit to branch trunk
in repository jhalfs.

The following commit(s) were added to refs/heads/trunk by this push:
     new ff30640  Fix an error when not downloading packages
ff30640 is described below

commit ff306407023f5e35e51e4f7d6badf3b6486f5d58
Author: Pierre Labastie <[email protected]>
AuthorDate: Tue Jun 14 18:55:36 2022 +0200

    Fix an error when not downloading packages
    
    When not downloading packages, the function "get_sources" returns
    early because it begins with:
    [ "$GETPKG" = y ] || return
    The problem is that in this case it returns with an exit code
    inherited from the last executed instruction, which is the
    test (and therefore "false"). The solution is to change to
    return 0.
---
 common/libs/func_download_pkgs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/libs/func_download_pkgs b/common/libs/func_download_pkgs
index 09ec7e7..3d369d2 100644
--- a/common/libs/func_download_pkgs
+++ b/common/libs/func_download_pkgs
@@ -5,7 +5,7 @@ get_sources() {              # Download file, write name to MISSING_FILES.DMP if
 #----------------------------#
 
     # Test if the packages must be downloaded
-  [ "$GETPKG" = y ] || return
+  [ "$GETPKG" = y ] || return 0
 
   local URL FILE BOOKMD5 MD5 HAVEMD5 fromARCHIVE WGETPARAM MAYBEMORE
 

-- 
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.