summaryrefslogtreecommitdiff
path: root/aptdpkgclean.sh
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2002-03-07 16:22:51 +0000
committerJonas Smedegaard <dr@jones.dk>2002-03-07 16:22:51 +0000
commit85d7610aadf1be8e4d1bece0a5ad5d63ccd3089c (patch)
tree2c2c72a2123c0e234e21b65196cf17a702ceb501 /aptdpkgclean.sh
parent0490e886f63d90013c3e10fe456fb84d6dd48fab (diff)
Rename files and add/improve descriptive headers.
Diffstat (limited to 'aptdpkgclean.sh')
-rwxr-xr-xaptdpkgclean.sh20
1 files changed, 0 insertions, 20 deletions
diff --git a/aptdpkgclean.sh b/aptdpkgclean.sh
deleted file mode 100755
index 0291fdd..0000000
--- a/aptdpkgclean.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/sh
-
-pathmatch="^/usr"
-
-cat /var/lib/my_ro_hack.todel | while read file; do
- [ -f "$file" ] || continue
- N1=`find "$file" -printf "%i\n"`
-
- b=`basename $file`; d=`dirname $file`
- XF="${b#.}"; XF="$d/${XF%.dpkg-ro-used.*}"
- N2=`find "$XF" -printf "%i\n"` || continue
-
- [ -n "$XF" ] || continue
- if [ "$N1" != "$N2" ] && ! fuser -s "$file"; then
- rm -f "$file"
- else
- echo "$file"
- fi
-done >/var/lib/my_ro_hack.todel.new
-mv /var/lib/my_ro_hack.todel.new /var/lib/my_ro_hack.todel