commitpkg: fix wrongly ordered find_cached_package call
The unknown packager check didn't worked so far as the wrongly ordered call to find_cached_package lead to the enclosing block never being executed. Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
This commit is contained in:
parent
62a2f118ce
commit
a3868cf542
|
@ -91,7 +91,7 @@ for _arch in "${arch[@]}"; do
|
|||
for _pkgname in "${pkgname[@]}"; do
|
||||
fullver=$(get_full_version "$_pkgname")
|
||||
|
||||
if pkgfile=$(find_cached_package "$_pkgname" "$_arch" "$fullver"); then
|
||||
if pkgfile=$(find_cached_package "$_pkgname" "$fullver" "$_arch"); then
|
||||
if grep -q "packager = Unknown Packager" <(bsdtar -xOqf "$pkgfile" .PKGINFO); then
|
||||
die "PACKAGER was not set when building package"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue