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.
This commit is contained in:
parent
800e4a8187
commit
4b24af9e9f
10
abuild.in
10
abuild.in
@ -139,6 +139,12 @@ default_sanitycheck() {
|
|||||||
&& ! echo $replaces_priority | egrep -q '^[0-9]+$'; then
|
&& ! echo $replaces_priority | egrep -q '^[0-9]+$'; then
|
||||||
die "replaces_priority must be a number"
|
die "replaces_priority must be a number"
|
||||||
fi
|
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 -
|
# 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
|
||||||
@ -927,6 +933,10 @@ prepare_metafiles() {
|
|||||||
echo "replaces_priority = $replaces_priority" >> "$pkginfo"
|
echo "replaces_priority = $replaces_priority" >> "$pkginfo"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -n "$provider_priority" ]; then
|
||||||
|
echo "provider_priority = $provider_priority" >> "$pkginfo"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "license = $license" >> "$pkginfo"
|
echo "license = $license" >> "$pkginfo"
|
||||||
for i in $replaces; do
|
for i in $replaces; do
|
||||||
echo "replaces = $i" >> "$pkginfo"
|
echo "replaces = $i" >> "$pkginfo"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user