From 2f9c029734f63ca3c27f7865a896d0c4f39b7fe4 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 27 Jan 2002 07:34:18 +0000 Subject: Only register files once (on interrupted installs same files are possibly installed multiple times). --- aptdpkgro.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'aptdpkgro.sh') diff --git a/aptdpkgro.sh b/aptdpkgro.sh index 71dc44d..47da72b 100755 --- a/aptdpkgro.sh +++ b/aptdpkgro.sh @@ -10,6 +10,7 @@ while read debname; do dir=`dirname "$file"`; base=`basename "$file"`; inode=`find "$file" -printf "%i\n"` + [ -L "$dir/.${base}.dpkg-ro-used.$inode" ] || continue (cd "$dir" && ln "$base" ".${base}.dpkg-ro-used.$inode") echo "$dir/.${base}.dpkg-ro-used.$inode" done >>/var/lib/my_ro_hack.todel -- cgit v1.2.3