summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-07-28 06:35:04 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-07-28 06:35:04 +0000
commitd24493deaf923989401d0d4df1f9ccf35403f1ff (patch)
treecd2227b88030d9df172fae985ef0a73f439c1b76 /urpm.pm
parentd44d330765dc48f489f892a1a5d190b38b66884a (diff)
downloadurpmi-d24493deaf923989401d0d4df1f9ccf35403f1ff.tar
urpmi-d24493deaf923989401d0d4df1f9ccf35403f1ff.tar.gz
urpmi-d24493deaf923989401d0d4df1f9ccf35403f1ff.tar.bz2
urpmi-d24493deaf923989401d0d4df1f9ccf35403f1ff.tar.xz
urpmi-d24493deaf923989401d0d4df1f9ccf35403f1ff.zip
Allow "README.update.urpmi" as an equivalent of "README.upgrade.urpmi"
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm.pm b/urpm.pm
index f0caa9b1..8120990d 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -2848,7 +2848,7 @@ sub install {
return unless defined $pkgid;
my $pkg = $urpm->{depslist}[$pkgid];
my $fullname = $pkg->fullname();
- my $trtype = (grep { /$fullname/ } values %$install) ? 'install' : 'upgrade';
+ my $trtype = (grep { /$fullname/ } values %$install) ? 'install' : '(upgrade|update)';
push @readmes, map { [ $_, $fullname ] } grep {
/\bREADME(\.$trtype)?\.urpmi$/
} $pkg->files();