From a3868cf5423d68a3614020376840a67da3a6f0d4 Mon Sep 17 00:00:00 2001 From: Levente Polyak Date: Fri, 13 Sep 2019 21:15:23 +0200 Subject: 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 --- commitpkg.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commitpkg.in b/commitpkg.in index 3fc3fa6..08f2b97 100644 --- a/commitpkg.in +++ b/commitpkg.in @@ -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 -- cgit v1.2.3-70-g09d2