diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> | 2006-09-20 09:18:22 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> | 2006-09-20 09:18:22 +0000 |
commit | be2ae14d6b08f9633af1eca8293e520b8776d857 (patch) | |
tree | b9ea68af1c2e62e226b80726b1258b3497f8b52d | |
parent | 48fbaed7c1711d74c46869d79716cc8f48119a97 (diff) | |
download | urpmi-be2ae14d6b08f9633af1eca8293e520b8776d857.tar urpmi-be2ae14d6b08f9633af1eca8293e520b8776d857.tar.gz urpmi-be2ae14d6b08f9633af1eca8293e520b8776d857.tar.bz2 urpmi-be2ae14d6b08f9633af1eca8293e520b8776d857.tar.xz urpmi-be2ae14d6b08f9633af1eca8293e520b8776d857.zip |
Notes for later.
-rw-r--r-- | urpm.pm | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -18,14 +18,6 @@ our @ISA = qw(URPM); use URPM; use URPM::Resolve; -BEGIN { - # this doesn't work for perls >= 5.9.4 - if ($ENV{DEBUG_URPMI}) { - require encoding::warnings; - encoding::warnings->import; - } -} - #- this violently overrides is_arch_compat() to always return true. sub shunt_ignorearch { eval q( sub URPM::Package::is_arch_compat { 1 } ); @@ -774,15 +766,16 @@ sub add_distrib_media { my ($urpm, $name, $url, %options) = @_; #- make sure configuration has been read. - # (Olivier Thauvin): Is this a workaround ? $urpm->{media} or $urpm->read_config; my $distribconf; if (my ($dir) = $url =~ m!^(?:removable[^:]*:/|file:/)?(/.*)!) { + # FIXME obscure error message $urpm->try_mounting($dir) or $urpm->{error}(N("unable to access first installation medium")), return (); $distribconf = MDV::Distribconf->new($dir); + # FIXME ugly error message $distribconf->load() or $urpm->{error}(N("this url seems to not contain any distrib")), return (); } else { unlink "$urpm->{cachedir}/partial/media.cfg"; |