aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-07-28 06:43:51 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-07-28 06:43:51 +0000
commit6d477d1c4e9d7c9fb52ea24095013bbf8dda7522 (patch)
tree929053753ebd79af85b7005b6157d9a2f01af291
parent02c4d3e64db2c0c98c1eebf5da5fb6510ecc77fc (diff)
downloadrpmdrake-6d477d1c4e9d7c9fb52ea24095013bbf8dda7522.tar
rpmdrake-6d477d1c4e9d7c9fb52ea24095013bbf8dda7522.tar.gz
rpmdrake-6d477d1c4e9d7c9fb52ea24095013bbf8dda7522.tar.bz2
rpmdrake-6d477d1c4e9d7c9fb52ea24095013bbf8dda7522.tar.xz
rpmdrake-6d477d1c4e9d7c9fb52ea24095013bbf8dda7522.zip
There must be room for refactoring, here.
-rwxr-xr-xrpmdrake2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmdrake b/rpmdrake
index 79d6f3d3..9dcbe7a8 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -1363,7 +1363,7 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-(
return if $MODE ne 'install' && $MODE ne 'update';
my $pkg = $urpm->{depslist}[$pkgid];
my $fullname = $pkg->fullname;
- my $trtype = (grep { /$fullname/ } values %sources_install) ? 'install' : 'upgrade';
+ my $trtype = (grep { /$fullname/ } values %sources_install) ? 'install' : '(update|upgrade)';
push our @Readmes, map {
[ $_, $fullname ]
} grep { /\bREADME(\.$trtype)?\.urpmi$/ } $pkg->files;