summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-01-17 15:50:26 +0000
committerFrancois Pons <fpons@mandriva.com>2002-01-17 15:50:26 +0000
commit20a6882a0dc3ceaf6e5f5a071572d4422e31cf85 (patch)
treebf20ca7e040313ad0ef61accae5fe51587332bdf
parent355f4b948b9e942424bb7038e506bc3a8a61fc3e (diff)
downloaddrakx-20a6882a0dc3ceaf6e5f5a071572d4422e31cf85.tar
drakx-20a6882a0dc3ceaf6e5f5a071572d4422e31cf85.tar.gz
drakx-20a6882a0dc3ceaf6e5f5a071572d4422e31cf85.tar.bz2
drakx-20a6882a0dc3ceaf6e5f5a071572d4422e31cf85.tar.xz
drakx-20a6882a0dc3ceaf6e5f5a071572d4422e31cf85.zip
avoid upgrading a package by selection on files unless it has been obsoleted.
-rw-r--r--perl-install/pkgs.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm
index c02e7f3e7..36a439607 100644
--- a/perl-install/pkgs.pm
+++ b/perl-install/pkgs.pm
@@ -1102,7 +1102,7 @@ sub selectPackagesToUpgrade($$$;$$) {
$toRemove{$otherPackage} = 1; #- force removing for theses other packages, select our.
}
} else {
- if (! exists $obsoletedPackages{c::headerGetEntry($header, 'name')}) {
+ if (exists $obsoletedPackages{c::headerGetEntry($header, 'name')}) {
my @files = c::headerGetEntry($header, 'filenames');
@installedFilesForUpgrade{grep { ($_ !~ m|^/dev/| && $_ !~ m|^/etc/rc.d/| && $_ !~ m|\.la$| &&
! -d "$prefix/$_" && ! -l "$prefix/$_") } @files} = ();