summaryrefslogtreecommitdiff
path: root/abuild.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-06-08 07:27:23 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-06-08 07:27:23 +0000
commit563409ed82164663e08835ed07584337ce601773 (patch)
treec60b9d54ff438b2e800be30416f66bcadfbfcba6 /abuild.in
parent472ba1680794a8a916b858e05a33f5b3935b21da (diff)
downloadabuild-563409ed82164663e08835ed07584337ce601773.tar.gz
abuild-563409ed82164663e08835ed07584337ce601773.tar.bz2
abuild-563409ed82164663e08835ed07584337ce601773.tar.xz
abuild-563409ed82164663e08835ed07584337ce601773.zip
abuild: clear inherit provides and install_if for subpackages
Unexpected result will happen if subpackages inherits the provides or install_if from main package. So we clear them.
Diffstat (limited to 'abuild.in')
-rw-r--r--abuild.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/abuild.in b/abuild.in
index 9e6f43a..cb069f2 100644
--- a/abuild.in
+++ b/abuild.in
@@ -947,6 +947,11 @@ archcheck() {
prepare_package() {
msg "Preparing ${subpkgname:+sub}package ${subpkgname:-$pkgname}..."
+ if [ -n "$subpkgname" ]; then
+ # the subpackages should not inherit those
+ provides=""
+ install_if=""
+ fi
stripbin
prepare_metafiles \
&& prepare_trace_rpaths \