diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2006-11-09 17:58:45 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2006-11-09 17:58:45 +0000 |
commit | 935fff1506bda8ffb065c5d6b2ba32e008611404 (patch) | |
tree | 3fcc030010b21a91d5b4822d8815015dc9a5aa1a /urpm.pm | |
parent | 6cbf9eb0cf3543226d0994fcb0a21b52baec3fe7 (diff) | |
download | urpmi-935fff1506bda8ffb065c5d6b2ba32e008611404.tar urpmi-935fff1506bda8ffb065c5d6b2ba32e008611404.tar.gz urpmi-935fff1506bda8ffb065c5d6b2ba32e008611404.tar.bz2 urpmi-935fff1506bda8ffb065c5d6b2ba32e008611404.tar.xz urpmi-935fff1506bda8ffb065c5d6b2ba32e008611404.zip |
is_iso() now returns a boolean value
Diffstat (limited to 'urpm.pm')
-rw-r--r-- | urpm.pm | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -346,7 +346,7 @@ sub probe_medium { #- returns the removable device name if it corresponds to an iso image, '' otherwise sub is_iso { my ($removable_dev) = @_; - $removable_dev && $removable_dev =~ /\.iso$/i ? $removable_dev : ''; + $removable_dev && $removable_dev =~ /\.iso$/i; } #- probe device associated with a removable device. @@ -1211,7 +1211,7 @@ sub update_media { $options{force} < 2 && ($options{probe_with} || $medium->{with_hdlist}) ? $with_hdlist_dir : $dir, #- in case of an iso image, pass its name - is_iso($medium->{removable}), + is_iso($medium->{removable}) && $medium->{removable}, ) or $urpm->{error}(N("unable to access medium \"%s\", this could happen if you mounted manually the directory when creating the medium.", $medium->{name})), next; @@ -2727,7 +2727,7 @@ sub copy_packages_of_removable_media { #- the directory given does not exist and may be accessible #- by mounting some other directory. Try to figure it out and mount #- everything that might be necessary. - while ($check_notfound->($id, $dir, is_iso($medium->{removable}) || 'removable')) { + while ($check_notfound->($id, $dir, is_iso($medium->{removable}) ? $medium->{removable} : 'removable')) { is_iso($medium->{removable}) || $options{ask_for_medium} or $urpm->{fatal}(4, N("medium \"%s\" is not selected", $medium->{name})); $urpm->try_umounting($dir); |