summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-11-16 20:11:25 +0000
committerThierry Vignaud <tv@mageia.org>2012-11-16 20:11:25 +0000
commit3336a22db38bd534110b298e3c7bc28df4555d4c (patch)
tree1583367e4b20a72547bb9b37bd35f6ec396d3ccd
parente0087eccd1af4155b06d82e590a3fff0e8e46b33 (diff)
downloadurpmi-3336a22db38bd534110b298e3c7bc28df4555d4c.tar
urpmi-3336a22db38bd534110b298e3c7bc28df4555d4c.tar.gz
urpmi-3336a22db38bd534110b298e3c7bc28df4555d4c.tar.bz2
urpmi-3336a22db38bd534110b298e3c7bc28df4555d4c.tar.xz
urpmi-3336a22db38bd534110b298e3c7bc28df4555d4c.zip
(get_README_files) comment
-rw-r--r--urpm/install.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/urpm/install.pm b/urpm/install.pm
index 7cf36a15..67f97ecf 100644
--- a/urpm/install.pm
+++ b/urpm/install.pm
@@ -148,6 +148,8 @@ sub get_README_files {
foreach my $i (0 .. $trans->NElements - 1) {
$trans->Element_name($i) eq $pkg->name or next;
+ # handle README.<version>-<release>.upgrade.urpmi:
+ # the content is displayed when upgrading from rpm older than <version>
my $vr = $trans->Element_version($i) . '-' . $trans->Element_release($i);
if (URPM::ranges_overlap("== $vr", "< $version")) {
$valid = 1;