diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-03-06 10:41:52 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-03-06 10:41:52 +0000 |
commit | d2e2b70e9e6fe92e4ea3d8cee938413ec237c32a (patch) | |
tree | 0a6647c845e3927f0f80c80477e62ec07883619c /urpm/media.pm | |
parent | 697cc7d4aeb9c0959eb2f833bd4efe309268fdd6 (diff) | |
download | urpmi-d2e2b70e9e6fe92e4ea3d8cee938413ec237c32a.tar urpmi-d2e2b70e9e6fe92e4ea3d8cee938413ec237c32a.tar.gz urpmi-d2e2b70e9e6fe92e4ea3d8cee938413ec237c32a.tar.bz2 urpmi-d2e2b70e9e6fe92e4ea3d8cee938413ec237c32a.tar.xz urpmi-d2e2b70e9e6fe92e4ea3d8cee938413ec237c32a.zip |
nicer error message
Diffstat (limited to 'urpm/media.pm')
-rw-r--r-- | urpm/media.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/media.pm b/urpm/media.pm index 79cda2d8..01d1c737 100644 --- a/urpm/media.pm +++ b/urpm/media.pm @@ -756,7 +756,7 @@ sub add_distrib_media { if ($url && urpm::is_local_url($url)) { $url = _migrate_removable_url($url) or return(); my $m = { url => $url }; - urpm::removable::try_mounting_medium($urpm, $m) or return (); + urpm::removable::try_mounting_medium_($urpm, $m) or $urpm->{error}(N("directory %s does not exist", $url)); $distribconf = MDV::Distribconf->new(file_from_file_url($url) || $url, undef); $distribconf->settree('mandriva'); |