diff options
author | William Pitcock <nenolod@dereferenced.org> | 2017-11-02 04:51:51 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2017-11-02 04:51:51 +0000 |
commit | 4b24af9e9f3524550a4b8f5666c10315a45dfe05 (patch) | |
tree | 8c25ad1f0458c88f56837a070b40c334c7c5f5ec /abuild.in | |
parent | 800e4a818764a30c4bd39822ada63b358ba9bb31 (diff) | |
download | abuild-4b24af9e9f3524550a4b8f5666c10315a45dfe05.tar.gz abuild-4b24af9e9f3524550a4b8f5666c10315a45dfe05.tar.bz2 abuild-4b24af9e9f3524550a4b8f5666c10315a45dfe05.tar.xz abuild-4b24af9e9f3524550a4b8f5666c10315a45dfe05.zip |
abuild: add support for provider_priority
provider_priority is a number which determines what priority a package should be
given when solving a dependency graph using a provides entry instead of a direct
package, in the event of conflicts.
Diffstat (limited to 'abuild.in')
-rw-r--r-- | abuild.in | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -139,6 +139,12 @@ default_sanitycheck() { && ! echo $replaces_priority | egrep -q '^[0-9]+$'; then die "replaces_priority must be a number" fi + + if [ -n "$provider_priority" ] \ + && ! echo $provider_priority | egrep -q '^[0-9]+$'; then + die "provider_priority must be a number" + fi + # check so no package names starts with - for i in $pkgname $subpackages; do case $i in @@ -927,6 +933,10 @@ prepare_metafiles() { echo "replaces_priority = $replaces_priority" >> "$pkginfo" fi + if [ -n "$provider_priority" ]; then + echo "provider_priority = $provider_priority" >> "$pkginfo" + fi + echo "license = $license" >> "$pkginfo" for i in $replaces; do echo "replaces = $i" >> "$pkginfo" |