Commit 51dd555c authored by Natanael Copa's avatar Natanael Copa

abuild: fix replaces_priority

was totally broke.
parent 4cce57fb
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment