Changeset ff30640 for common


Ignore:
Timestamp:
06/14/2022 04:55:36 PM (2 years ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
ablfs-more, trunk
Children:
d54e3c9
Parents:
55e82d2
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/libs/func_download_pkgs

    r55e82d2 rff30640  
    66
    77    # Test if the packages must be downloaded
    8   [ "$GETPKG" = y ] || return
     8  [ "$GETPKG" = y ] || return 0
    99
    1010  local URL FILE BOOKMD5 MD5 HAVEMD5 fromARCHIVE WGETPARAM MAYBEMORE
Note: See TracChangeset for help on using the changeset viewer.