summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2014-04-10 11:30:42 +0000
committerTimo Teräs <timo.teras@iki.fi>2014-04-10 11:31:13 +0000
commit80e64f4c5d88b062c3447e9095afcf88ba968c32 (patch)
tree1905dcf9ea5c49492afd035d808e6746b1c51b06 /src
parent9ee8c7ca0036929509a210e4ee9049e4b2022305 (diff)
downloadapk-tools-80e64f4c5d88b062c3447e9095afcf88ba968c32.tar.gz
apk-tools-80e64f4c5d88b062c3447e9095afcf88ba968c32.tar.bz2
apk-tools-80e64f4c5d88b062c3447e9095afcf88ba968c32.tar.xz
apk-tools-80e64f4c5d88b062c3447e9095afcf88ba968c32.zip
package: do not report duplicate reverse dependencies
most notable in error report from 'del' applet
Diffstat (limited to 'src')
-rw-r--r--src/package.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/package.c b/src/package.c
index ca172e9..71d1023 100644
--- a/src/package.c
+++ b/src/package.c
@@ -1214,8 +1214,11 @@ static void foreach_reverse_dependency(
pkg0->foreach_genid = genid;
}
foreach_array_item(d0, pkg0->depends) {
- if (apk_dep_analyze(d0, pkg) & match)
+ if (apk_dep_analyze(d0, pkg) & match) {
cb(pkg0, d0, pkg, ctx);
+ if (genid)
+ break;
+ }
}
}
}