diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-02-22 14:23:16 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-02-22 14:23:16 +0000 |
commit | 51dd555cf242b7890978c0b5197723a6d839fecd (patch) | |
tree | d4dc448bc7414a6faf6753b1f6397a7ecdcbfdbb /abuild.in | |
parent | 4cce57fba8767a487473eeb6a1c869046e623177 (diff) | |
download | abuild-51dd555cf242b7890978c0b5197723a6d839fecd.tar.gz abuild-51dd555cf242b7890978c0b5197723a6d839fecd.tar.bz2 abuild-51dd555cf242b7890978c0b5197723a6d839fecd.tar.xz abuild-51dd555cf242b7890978c0b5197723a6d839fecd.zip |
abuild: fix replaces_priority
was totally broke.
Diffstat (limited to 'abuild.in')
-rwxr-xr-x | abuild.in | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |