From 51dd555cf242b7890978c0b5197723a6d839fecd Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 22 Feb 2012 14:23:16 +0000 Subject: abuild: fix replaces_priority was totally broke. --- abuild.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/abuild.in b/abuild.in index 7f1c594..a20aeaa 100755 --- a/abuild.in +++ b/abuild.in @@ -133,7 +133,8 @@ default_sanitycheck() { [ -z "$url" ] && die "Missing url in APKBUILD" [ -z "$license" ] && die "Missing license in APKBULID" - if [ -n "$replaces_prority" ] && ! egrep -q '^[0-9]+$'; then + if [ -n "$replaces_priority" ] \ + && ! echo $replaces_priority | egrep -q '^[0-9]+$'; then die "replaces_priority must be a number" fi # check so no package names starts with - @@ -716,7 +717,7 @@ EOF fi if [ -n "$replaces_priority" ]; then - echo "replaces_priority = $replaces_priority" + echo "replaces_priority = $replaces_priority" >> "$pkginfo" fi for i in $license; do -- cgit v1.2.3-60-g2f50