summaryrefslogtreecommitdiffstats
path: root/autoirpm.uninstall
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-11-02 16:08:42 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-11-02 16:08:42 +0000
commitbaabd04d3ba7a4f73bf297d01b7d0820a1f2bde9 (patch)
tree25d0f49ce35dce3feab4ea207a44f63253e59bc1 /autoirpm.uninstall
parent38033c3f1b3089774c321cead65c6031c650e96c (diff)
downloadurpmi-baabd04d3ba7a4f73bf297d01b7d0820a1f2bde9.tar
urpmi-baabd04d3ba7a4f73bf297d01b7d0820a1f2bde9.tar.gz
urpmi-baabd04d3ba7a4f73bf297d01b7d0820a1f2bde9.tar.bz2
urpmi-baabd04d3ba7a4f73bf297d01b7d0820a1f2bde9.tar.xz
urpmi-baabd04d3ba7a4f73bf297d01b7d0820a1f2bde9.zip
Remove old autoirpm attempt
Diffstat (limited to 'autoirpm.uninstall')
-rw-r--r--autoirpm.uninstall23
1 files changed, 0 insertions, 23 deletions
diff --git a/autoirpm.uninstall b/autoirpm.uninstall
deleted file mode 100644
index cd03a7de..00000000
--- a/autoirpm.uninstall
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/perl
-
-$DIR = "/var/lib/urpmi";
-$BASE = "$DIR/autoirpm";
-$AUTO_INSTALL_BIN_LIST = "$BASE.binaries";
-$INSTALL_SCRIPT_REP = "$BASE.scripts";
-
-open F, $AUTO_INSTALL_BIN_LIST or die;
-map { chop; remove_links_and_scripts($_) } <F>;
-close F;
-
-sub remove_links_and_scripts($) {
- my ($rpm, @progs) = split;
-
- my $script = "$INSTALL_SCRIPT_REP/$rpm";
-
- -e $script or return 0; # not installed for this package
- foreach (<@progs>) {
- readlink "/$_" ne $script and next;
- unlink "/$_" or warn "removing $_ failed";
- }
- unlink $script or warn "removing $script failed";
-}