diff options
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 |