From 9a7b5f4d7331c74fc6dc8c8d05e07d334e6b1776 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Sat, 18 Dec 1999 16:14:13 +0000 Subject: no_comment --- urpmi.addmedia | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'urpmi.addmedia') 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"; -- cgit v1.2.1