sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to master sorcery by Ismael Luceno (25e8e8f824f49cb3aa549da46cc53a90b02920e9)
- From: Ismael Luceno <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to master sorcery by Ismael Luceno (25e8e8f824f49cb3aa549da46cc53a90b02920e9)
- Date: Sat, 4 Apr 2020 01:35:57 +0000
GIT changes to master sorcery by Ismael Luceno <ismael AT sourcemage.org>:
var/lib/sorcery/modules/libtrack | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit 25e8e8f824f49cb3aa549da46cc53a90b02920e9
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
libtrack: Add fallback for non-functional cache archive compressor
diff --git a/var/lib/sorcery/modules/libtrack
b/var/lib/sorcery/modules/libtrack
index 3043116..60f1916 100755
--- a/var/lib/sorcery/modules/libtrack
+++ b/var/lib/sorcery/modules/libtrack
@@ -430,8 +430,10 @@ create_cache_archive() {
case "$COMPRESSBIN" in
gzip|bzip2|pbzip2|xz)
- $COMPRESSBIN -c $CACHE > $CACHE_COMP
- rm $CACHE
+ if "$COMPRESSBIN" -c </dev/null &>/dev/null; then
+ "$COMPRESSBIN" -c "$CACHE" > "$CACHE_COMP" &&
+ rm "$CACHE"
+ fi
;;
esac
}
- [SM-Commit] GIT changes to master sorcery by Ismael Luceno (25e8e8f824f49cb3aa549da46cc53a90b02920e9), Ismael Luceno, 04/03/2020
Archive powered by MHonArc 2.6.24.