diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-02-17 14:16:35 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-02-17 15:07:25 +0000 |
commit | dabc0dea8c0cca9a8f7e8cc86d3eee7f34b92bf6 (patch) | |
tree | ec0200734c1876986c103f12c5ab3a58d998570d /abuild.in | |
parent | e76192fa59702e1dd819bd39b82326ae9cd0c203 (diff) | |
download | abuild-dabc0dea8c0cca9a8f7e8cc86d3eee7f34b92bf6.tar.gz abuild-dabc0dea8c0cca9a8f7e8cc86d3eee7f34b92bf6.tar.bz2 abuild-dabc0dea8c0cca9a8f7e8cc86d3eee7f34b92bf6.tar.xz abuild-dabc0dea8c0cca9a8f7e8cc86d3eee7f34b92bf6.zip |
abuild: add support for replaces_priority
Diffstat (limited to 'abuild.in')
-rwxr-xr-x | abuild.in | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -133,6 +133,9 @@ 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 + die "replaces_priority must be a number" + fi # check so no package names starts with - for i in $pkgname $subpackages; do case $i in @@ -712,6 +715,10 @@ EOF echo "maintainer = $maintainer" >> "$pkginfo" fi + if [ -n "$replaces_priority" ]; then + echo "replaces_priority = $replaces_priority" + fi + for i in $license; do echo "license = $i" >> "$pkginfo" done |