summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-07-09 11:34:57 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-07-09 11:34:57 +0000
commit7c7faebaa3f0d2cc5314d5ed33acf8749a3f0c6b (patch)
tree72df470f7992e7246a4823f66812d86090bab388
parent352d67bb3389c4ae91e4b0e915dc0653eb4c7098 (diff)
downloadurpmi-7c7faebaa3f0d2cc5314d5ed33acf8749a3f0c6b.tar
urpmi-7c7faebaa3f0d2cc5314d5ed33acf8749a3f0c6b.tar.gz
urpmi-7c7faebaa3f0d2cc5314d5ed33acf8749a3f0c6b.tar.bz2
urpmi-7c7faebaa3f0d2cc5314d5ed33acf8749a3f0c6b.tar.xz
urpmi-7c7faebaa3f0d2cc5314d5ed33acf8749a3f0c6b.zip
- urpmi, urpme, urpmq:
o fix orphans handling: suggested packages must not be detected as orphans (reported on cooker ml: perl-Mail-DomainKeys suggested by spamassassin was detected as orphan)
-rw-r--r--NEWS2
-rw-r--r--urpm/orphans.pm2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 03cd4bf6..97e97f46 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- urpmi, urpme, urpmq:
+ o fix orphans handling: suggested packages must not be detected as orphans
- urpmi:
o handle README.urpmi in utf8 (but not other encodings) (#41553)
o handle --debug-librpm
diff --git a/urpm/orphans.pm b/urpm/orphans.pm
index 283c9dec..99368c1e 100644
--- a/urpm/orphans.pm
+++ b/urpm/orphans.pm
@@ -246,7 +246,7 @@ sub _all_unrequested_orphans {
}
while (my $pkg = shift @$req) {
- foreach my $prop ($pkg->requires) {
+ foreach my $prop ($pkg->requires, $pkg->suggests) {
my $n = URPM::property2name($prop);
foreach my $p (@{$provides{$n} || []}) {
if ($p != $pkg && $l{$p->name} && $p->provides_overlap($prop)) {