summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-12-13 09:54:17 +0000
committerThierry Vignaud <tv@mageia.org>2012-12-13 09:54:17 +0000
commiteb415462afa2a8e6caaecd89eb2329d28cc4a9b0 (patch)
tree71189346a429433741340d507463da16636460fe /urpm
parent5b4d5c4d20ed6beb1efac54dc6c03de8df4c4681 (diff)
downloadurpmi-eb415462afa2a8e6caaecd89eb2329d28cc4a9b0.tar
urpmi-eb415462afa2a8e6caaecd89eb2329d28cc4a9b0.tar.gz
urpmi-eb415462afa2a8e6caaecd89eb2329d28cc4a9b0.tar.bz2
urpmi-eb415462afa2a8e6caaecd89eb2329d28cc4a9b0.tar.xz
urpmi-eb415462afa2a8e6caaecd89eb2329d28cc4a9b0.zip
(add_distrib_media) associate media_cfg data to media when adding them
needed for drakx installer complement commit r259200 by cfergeau on Aug 13 2009: "Save media.cfg files locally to map urpmi.cfg media to media.cfg" which only associate media_cfg data to media loaded from config, not those just added
Diffstat (limited to 'urpm')
-rw-r--r--urpm/media.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/urpm/media.pm b/urpm/media.pm
index 92f4a777..97228f76 100644
--- a/urpm/media.pm
+++ b/urpm/media.pm
@@ -1055,6 +1055,12 @@ sub add_distrib_media {
);
++$medium_index;
}
+
+ # associate newly added medias with their description in a media.cfg file
+ # @media content will be modified and then add_existing medium will take
+ # care of copying the media to $urpm
+ _associate_media_with_mediacfg($urpm, [ map { name2medium($urpm, $_) } @newnames ]);
+
return @newnames;
}