From 0a3f52758fa6f0a9aa1721816b946ec7f220bb0f Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 29 Jul 2012 15:47:32 +0200 Subject: Remove empty dirs _after_ cleaning symlinks. --- localdebpool | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'localdebpool') diff --git a/localdebpool b/localdebpool index 88152e0..34e3abf 100755 --- a/localdebpool +++ b/localdebpool @@ -196,17 +196,17 @@ else exit 1 fi -echo "Clear empty dirs and files, and clean dangling symlinks..." -debugprint "find \"$PRVBASE\" -empty -delete" -find "$PRVBASE" -empty -delete -debugprint "find \"$PUBBASE\" -empty -delete" -find "$PUBBASE" -empty -delete +echo "Clean dangling symlinks, and remove empty dirs and files..." if [ -n "$DEBUG" ] && [ "$DEBUG" -ge 3 ]; then debugprint "symlinks -dr ${DEBUG:+-v} \"$PRVBASE\" \"$PUBBASE\"" symlinks -dr ${DEBUG:+-v} "$PRVBASE" "$PUBBASE" else symlinks -dr ${DEBUG:+-v} "$PRVBASE" "$PUBBASE" > /dev/null fi +debugprint "find \"$PRVBASE\" -empty -delete" +find "$PRVBASE" -empty -delete +debugprint "find \"$PUBBASE\" -empty -delete" +find "$PUBBASE" -empty -delete # Create/update symlink farms $prvgrpdir and $pubpkgdir # -- cgit v1.2.3