[packages/rpm-build-tools] purge-packages: update comments
glen
glen at pld-linux.org
Sat Dec 19 01:53:48 CET 2015
commit de844fbf343490fcf9e424e1d05ba776f6ea3e39
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sat Nov 28 01:13:40 2015 +0200
purge-packages: update comments
purge-packages.sh | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/purge-packages.sh b/purge-packages.sh
index d59bb80..fe94063 100755
--- a/purge-packages.sh
+++ b/purge-packages.sh
@@ -1,10 +1,10 @@
#!/bin/sh
# Purges packages/ checkouts
-# - if package has clean state, the dir is removed
-# - otherwise git gc is called
+# - if package has clean state, the dir is cleaned up (moved to purge dir)
+# - otherwise git gc is called if CALL_GC=yes
set -e
-CALL_GC=${CALL_GC:-'no'}
+CALL_GC=${CALL_GC:-no}
topdir="${1:-$(rpm -E %_topdir)}"
topdir=$(readlink -f "$topdir")
@@ -53,7 +53,7 @@ for pkg in */.git; do
done
if [ "$purge" = 'yes' ]; then
cat <<-EOF
- * Package $pkg - State clean. Removing
+ * Package $pkg - State clean. Purging
EOF
mv ../$pkg $purgedir
fi }
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/de844fbf343490fcf9e424e1d05ba776f6ea3e39
More information about the pld-cvs-commit
mailing list