Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/commitpkg.in
diff options
context:
space:
mode:
authorLevente Polyak <anthraxx@archlinux.org>2019-09-13 21:15:23 +0200
committerLevente Polyak <anthraxx@archlinux.org>2019-09-28 00:16:02 +0200
commita3868cf5423d68a3614020376840a67da3a6f0d4 (patch)
tree6d69efb24468f69cca9e910cd7e2aab32b0919ef /commitpkg.in
parent62a2f118ce84deb9077cf163c45d3b22af741269 (diff)
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>
Diffstat (limited to 'commitpkg.in')
-rw-r--r--commitpkg.in2
1 files changed, 1 insertions, 1 deletions
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