diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-11-03 10:59:01 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-11-03 10:59:01 +0000 |
commit | 030f63c4a6aaa1bef66522d62a2123d5a2253a8b (patch) | |
tree | 7bb7e2d31aa1180a4e88b68b89bf48cfb0eac66b | |
parent | b946e56a56a6f0180eb280ee4d906cd0b62a4814 (diff) | |
download | urpmi-030f63c4a6aaa1bef66522d62a2123d5a2253a8b.tar urpmi-030f63c4a6aaa1bef66522d62a2123d5a2253a8b.tar.gz urpmi-030f63c4a6aaa1bef66522d62a2123d5a2253a8b.tar.bz2 urpmi-030f63c4a6aaa1bef66522d62a2123d5a2253a8b.tar.xz urpmi-030f63c4a6aaa1bef66522d62a2123d5a2253a8b.zip |
Don't use MDK::Common.
-rwxr-xr-x | urpmi | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; } |