diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-02-27 11:43:49 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-02-27 11:43:49 +0000 |
commit | f969d3d1e11f5fed1acc8e5e35b14dea60b06a0e (patch) | |
tree | e73ce2cc59f3cd0274631395ede73b970cc18fcc /urpm/media.pm | |
parent | 8999ef7540f417af02aa0da49ca27a7e4ea487bc (diff) | |
download | urpmi-f969d3d1e11f5fed1acc8e5e35b14dea60b06a0e.tar urpmi-f969d3d1e11f5fed1acc8e5e35b14dea60b06a0e.tar.gz urpmi-f969d3d1e11f5fed1acc8e5e35b14dea60b06a0e.tar.bz2 urpmi-f969d3d1e11f5fed1acc8e5e35b14dea60b06a0e.tar.xz urpmi-f969d3d1e11f5fed1acc8e5e35b14dea60b06a0e.zip |
internally use {iso} instead of {removable} for iso files
(to make things more clear)
Diffstat (limited to 'urpm/media.pm')
-rw-r--r-- | urpm/media.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/urpm/media.pm b/urpm/media.pm index f182a2c7..0ee2eba9 100644 --- a/urpm/media.pm +++ b/urpm/media.pm @@ -51,6 +51,7 @@ sub _only_media_opts_read { my ($m) = @_; my $c = only_media_opts($m); $c->{media_info_dir} ||= 'media_info'; + $c->{iso} = delete $c->{removable} if $c->{removable} && urpm::removable::is_iso($c->{removable}); $c; } sub _only_media_opts_write { @@ -58,6 +59,7 @@ sub _only_media_opts_write { my $c = only_media_opts($m); delete $c->{media_info_dir} if $c->{media_info_dir} eq 'media_info'; delete $c->{url} if $c->{mirrorlist}; + $c->{removable} = delete $c->{iso} if $c->{iso}; $c; } @@ -403,9 +405,7 @@ sub probe_removable_device { #- try to find device to open/close for removable medium. if (my $dir = file_from_local_url($medium->{url})) { - if (urpm::removable::is_iso($medium->{removable})) { - $urpm->{log}(N("Medium \"%s\" is an ISO image, will be mounted on-the-fly", $medium->{name})); - } elsif (my $entry = urpm::sys::find_a_mntpoint($dir)) { + if (my $entry = urpm::sys::find_a_mntpoint($dir)) { if ($medium->{removable} && $medium->{removable} ne $entry->{device}) { $urpm->{log}(N("using different removable device [%s] for \"%s\"", $entry->{device}, $medium->{name})); @@ -1246,7 +1246,7 @@ sub _update_medium__parse_if_unmodified__local { #- everything that might be necessary. urpm::removable::try_mounting($urpm, $dir, - $medium->{removable}, + $medium->{iso}, ) or $urpm->{error}(N("unable to access medium \"%s\", this could happen if you mounted manually the directory when creating the medium.", $medium->{name})), return; } |