summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-11-03 10:59:01 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-11-03 10:59:01 +0000
commit030f63c4a6aaa1bef66522d62a2123d5a2253a8b (patch)
tree7bb7e2d31aa1180a4e88b68b89bf48cfb0eac66b
parentb946e56a56a6f0180eb280ee4d906cd0b62a4814 (diff)
downloadurpmi-030f63c4a6aaa1bef66522d62a2123d5a2253a8b.tar
urpmi-030f63c4a6aaa1bef66522d62a2123d5a2253a8b.tar.gz
urpmi-030f63c4a6aaa1bef66522d62a2123d5a2253a8b.tar.bz2
urpmi-030f63c4a6aaa1bef66522d62a2123d5a2253a8b.tar.xz
urpmi-030f63c4a6aaa1bef66522d62a2123d5a2253a8b.zip
Don't use MDK::Common.
-rwxr-xr-xurpmi5
1 files changed, 3 insertions, 2 deletions
diff --git a/urpmi b/urpmi
index df2c985b..7c70e002 100755
--- a/urpmi
+++ b/urpmi
@@ -23,7 +23,6 @@ use urpm;
use urpm::args;
use urpm::msg;
use urpm::util qw(untaint);
-use MDK::Common;
#- contains informations to parse installed system.
my $urpm = new urpm;
@@ -153,7 +152,9 @@ if (grep { $_ eq '--restricted' } @ARGV) {
} else {
foreach my $a (@ARGV) {
if ($a =~ /\.urpmi$/) {
- push @ARGVcopy, split /\n/, cat_($a);
+ open my $fh, '<', $a or do { warn "Can't open $a: $!\n"; next };
+ push @ARGV_expanded, map { chomp; $_ } <$fh>;
+ close $fh;
} else {
push @ARGVcopy, $a;
}