summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--urpm/media.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/urpm/media.pm b/urpm/media.pm
index f421ad7a..6e4f61b0 100644
--- a/urpm/media.pm
+++ b/urpm/media.pm
@@ -1577,10 +1577,11 @@ sub _retrieve_xml_media_info_or_remove {
foreach my $xml_info (@xml_media_info) {
my $f = statedir_xml_info($urpm, $medium, $xml_info);
- if ($medium->{removable} ||
+ if (urpm::is_cdrom_url($medium->{url}) ||
get_medium_option($urpm, $medium, 'xml-info') eq 'always' ||
get_medium_option($urpm, $medium, 'xml-info') eq 'update-only' && -e $f) {
$ok &&= _retrieve_media_info_file_and_check_MD5SUM($urpm, $medium, $xml_info, '.xml.lzma', $quiet);
+ $ok = 1 if urpm::is_cdrom_url($medium->{url});
} else {
#- "on-demand"
unlink $f;