summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-02-22 14:23:16 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-02-22 14:23:16 +0000
commit51dd555cf242b7890978c0b5197723a6d839fecd (patch)
treed4dc448bc7414a6faf6753b1f6397a7ecdcbfdbb
parent4cce57fba8767a487473eeb6a1c869046e623177 (diff)
downloadabuild-51dd555cf242b7890978c0b5197723a6d839fecd.tar.gz
abuild-51dd555cf242b7890978c0b5197723a6d839fecd.tar.bz2
abuild-51dd555cf242b7890978c0b5197723a6d839fecd.tar.xz
abuild-51dd555cf242b7890978c0b5197723a6d839fecd.zip
abuild: fix replaces_priority
was totally broke.
-rwxr-xr-xabuild.in5
1 files 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