summaryrefslogtreecommitdiff
path: root/app-admin/localepurge/files/localepurge-0.5.4-directorysum.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-admin/localepurge/files/localepurge-0.5.4-directorysum.patch
reinit the tree, so we can have metadata
Diffstat (limited to 'app-admin/localepurge/files/localepurge-0.5.4-directorysum.patch')
-rw-r--r--app-admin/localepurge/files/localepurge-0.5.4-directorysum.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/app-admin/localepurge/files/localepurge-0.5.4-directorysum.patch b/app-admin/localepurge/files/localepurge-0.5.4-directorysum.patch
new file mode 100644
index 000000000000..f837d2845d54
--- /dev/null
+++ b/app-admin/localepurge/files/localepurge-0.5.4-directorysum.patch
@@ -0,0 +1,20 @@
+--- localepurge.orig 2012-12-04 23:15:29.422756767 +0100
++++ localepurge 2012-12-04 23:16:13.313756491 +0100
+@@ -198,7 +198,7 @@
+
+ if [ "$SHOWFREEDSPACE" = "enabled" ]; then
+ if test $SPACETMP -gt 0 ; then
+- LOCALETOTAL=$SPACETMP
++ LOCALETOTAL=$(($LOCALETOTAL + $SPACETMP))
+ einfo "localepurge: Disk space freed in $LOCALEDIR: ${BOLD}"$SPACETMP"K${NORMAL}"
+ fi
+ SPACETMP=0
+@@ -230,7 +230,7 @@
+
+ if [ "$SHOWFREEDSPACE" = "enabled" ]; then
+ if test $SPACETMP -gt 0 ; then
+- MANTOTAL=$SPACETMP
++ MANTOTAL=$(($MANTOTAL + $SPACETMP))
+ einfo "localepurge: Disk space freed in $MANPAGEDIR: ${BOLD}"$SPACETMP"K${NORMAL}"
+ fi
+ SPACETMP=0