diff options
author | Jonas Smedegaard <dr@jones.dk> | 2012-07-29 15:47:32 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2012-07-29 15:47:32 +0200 |
commit | 0a3f52758fa6f0a9aa1721816b946ec7f220bb0f (patch) | |
tree | b9082c0f5463191b5d8107a2babea652d1e9d4fe /localdebpool | |
parent | 0c85bcbaa5e750efe7f088fec253bbe7ca0506f3 (diff) |
Remove empty dirs _after_ cleaning symlinks.
Diffstat (limited to 'localdebpool')
-rwxr-xr-x | localdebpool | 10 |
1 files changed, 5 insertions, 5 deletions
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 # |