summaryrefslogtreecommitdiffstats
path: root/autoirpm.update
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-12-19 20:49:19 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-12-19 20:49:19 +0000
commita033de58c091af821e3323963be6ce6dcf101afc (patch)
treea5f452a614e3e4a64cbd96035c754f55dc733818 /autoirpm.update
parent1dee2c62b8b19cefa4dbf096027428ef786ec057 (diff)
downloadurpmi-a033de58c091af821e3323963be6ce6dcf101afc.tar
urpmi-a033de58c091af821e3323963be6ce6dcf101afc.tar.gz
urpmi-a033de58c091af821e3323963be6ce6dcf101afc.tar.bz2
urpmi-a033de58c091af821e3323963be6ce6dcf101afc.tar.xz
urpmi-a033de58c091af821e3323963be6ce6dcf101afc.zip
no_comment
Diffstat (limited to 'autoirpm.update')
-rw-r--r--autoirpm.update6
1 files changed, 4 insertions, 2 deletions
diff --git a/autoirpm.update b/autoirpm.update
index 3dfff948..7be979ea 100644
--- a/autoirpm.update
+++ b/autoirpm.update
@@ -1,11 +1,13 @@
#!/usr/bin/perl
-$DIR = "/etc/urpmi";
+$DIR = "/var/lib/urpmi";
+$DIR2 = "/etc/urpmi";
$BASE = "$DIR/autoirpm";
+$BASE2 = "$DIR2/autoirpm";
$AUTO_INSTALL_BIN_LIST = "$BASE.binaries";
$INSTALL_SCRIPT_REP = "$BASE.scripts";
-system("autoirpm.update-all $BASE.allow $BASE.deny $DIR/hdlist.* > $AUTO_INSTALL_BIN_LIST");
+system("gzip -dc $DIR/hdlist.*.gz | autoirpm.update-all $BASE2.allow $BASE2.deny - > $AUTO_INSTALL_BIN_LIST");
$? == 0 or die "autoirpm.upgrade-all failed\n";
open F, $AUTO_INSTALL_BIN_LIST or die;