summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-06-05 07:27:44 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-06-05 07:27:44 +0000
commit9e9175536911315f5b1a4606143613ca36c5804d (patch)
tree1fd84dba2162f1f4dd61c570671d967f81a3e798
parentf5dce44bf98218313715bc3b849c9b2120272f0d (diff)
downloadabuild-9e9175536911315f5b1a4606143613ca36c5804d.tar.gz
abuild-9e9175536911315f5b1a4606143613ca36c5804d.tar.bz2
abuild-9e9175536911315f5b1a4606143613ca36c5804d.tar.xz
abuild-9e9175536911315f5b1a4606143613ca36c5804d.zip
abuild: add warning when depends_dev needs cleanup
-rw-r--r--abuild.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/abuild.in b/abuild.in
index 9e77ee4..12e43da 100644
--- a/abuild.in
+++ b/abuild.in
@@ -1049,6 +1049,10 @@ trace_apk_deps() {
for i in $(sort -u "$dir"/.needs-pc 2>/dev/null); do
if subpkg_provides_pc "$i" || cross_compiling \
|| $APK info --quiet --installed "pc:$i"; then
+ local provider=$(apk search --quiet "pc:$i")
+ if list_has "$provider" $depends_dev; then
+ warning "$provider should be removed from depends_dev"
+ fi
autodeps="$autodeps pc:$i"
else
warning "Could not find any provider for pc:$i"