summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.com>2006-09-20 09:18:22 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.com>2006-09-20 09:18:22 +0000
commitbe2ae14d6b08f9633af1eca8293e520b8776d857 (patch)
treeb9ea68af1c2e62e226b80726b1258b3497f8b52d
parent48fbaed7c1711d74c46869d79716cc8f48119a97 (diff)
downloadurpmi-be2ae14d6b08f9633af1eca8293e520b8776d857.tar
urpmi-be2ae14d6b08f9633af1eca8293e520b8776d857.tar.gz
urpmi-be2ae14d6b08f9633af1eca8293e520b8776d857.tar.bz2
urpmi-be2ae14d6b08f9633af1eca8293e520b8776d857.tar.xz
urpmi-be2ae14d6b08f9633af1eca8293e520b8776d857.zip
Notes for later.
-rw-r--r--urpm.pm11
1 files changed, 2 insertions, 9 deletions
diff --git a/urpm.pm b/urpm.pm
index e07e3bdc..83078ea2 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -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";