summaryrefslogtreecommitdiffstats
path: root/urpm/media.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm/media.pm')
-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;
}