summaryrefslogtreecommitdiffstats
path: root/urpmi.addmedia
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-12-18 16:14:13 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-12-18 16:14:13 +0000
commit9a7b5f4d7331c74fc6dc8c8d05e07d334e6b1776 (patch)
tree89e671e2f563800df56774a26596a9da815173ef /urpmi.addmedia
parentfe8c215734245c88f739b43420770752c63d6310 (diff)
downloadurpmi-9a7b5f4d7331c74fc6dc8c8d05e07d334e6b1776.tar
urpmi-9a7b5f4d7331c74fc6dc8c8d05e07d334e6b1776.tar.gz
urpmi-9a7b5f4d7331c74fc6dc8c8d05e07d334e6b1776.tar.bz2
urpmi-9a7b5f4d7331c74fc6dc8c8d05e07d334e6b1776.tar.xz
urpmi-9a7b5f4d7331c74fc6dc8c8d05e07d334e6b1776.zip
no_comment
Diffstat (limited to 'urpmi.addmedia')
-rwxr-xr-xurpmi.addmedia5
1 files changed, 3 insertions, 2 deletions
diff --git a/urpmi.addmedia b/urpmi.addmedia
index 95f85adf..ec941731 100755
--- a/urpmi.addmedia
+++ b/urpmi.addmedia
@@ -21,7 +21,7 @@ if ($0 =~ /removemedia/) {
local ($_) = @ARGV or die "missing the entry to remove\n(one of " . join(", ", @entries) . ")\n";
foreach $e (/^--?a/ ? @entries : @ARGV) {
my $f;
- $f = "$DIR/hdlist.$e"; unlink $f or die "failed to remove $f";
+ $f = "$DIR/hdlist.$e"; unlink $f || unlink "$f.gz" or die "failed to remove $f";
$f = "$DIR/list.$e"; unlink $f or die "failed to remove $f";
substInFile { s/^/\#/ if /^$e\s/ } $CFG;
}
@@ -34,7 +34,8 @@ if ($0 =~ /removemedia/) {
}
if (glob("$DIR/hdlist.*")) {
print "generating dependencies list\n";
- system("gendepslist -h $DEPSLIST $DIR/hdlist.*");
+ system("gzip $DIR/hdlist.* 2>/dev/null"); # gzip
+ system("gzip -dc $DIR/hdlist.* | gendepslist -h $DEPSLIST -");
system("autoirpm.update");
} else {
unlink $DEPSLIST, "$DEPSLIST.html";