Commit dabc0dea authored by Natanael Copa's avatar Natanael Copa

abuild: add support for replaces_priority

parent e76192fa
...@@ -133,6 +133,9 @@ default_sanitycheck() { ...@@ -133,6 +133,9 @@ default_sanitycheck() {
[ -z "$url" ] && die "Missing url in APKBUILD" [ -z "$url" ] && die "Missing url in APKBUILD"
[ -z "$license" ] && die "Missing license in APKBULID" [ -z "$license" ] && die "Missing license in APKBULID"
if [ -n "$replaces_prority" ] && ! egrep -q '^[0-9]+$'; then
die "replaces_priority must be a number"
fi
# check so no package names starts with - # check so no package names starts with -
for i in $pkgname $subpackages; do for i in $pkgname $subpackages; do
case $i in case $i in
...@@ -712,6 +715,10 @@ EOF ...@@ -712,6 +715,10 @@ EOF
echo "maintainer = $maintainer" >> "$pkginfo" echo "maintainer = $maintainer" >> "$pkginfo"
fi fi
if [ -n "$replaces_priority" ]; then
echo "replaces_priority = $replaces_priority"
fi
for i in $license; do for i in $license; do
echo "license = $i" >> "$pkginfo" echo "license = $i" >> "$pkginfo"
done done
......
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