aboutsummaryrefslogtreecommitdiffstats
path: root/.extras/image-builder/lib.sh
diff options
context:
space:
mode:
Diffstat (limited to '.extras/image-builder/lib.sh')
-rw-r--r--.extras/image-builder/lib.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/.extras/image-builder/lib.sh b/.extras/image-builder/lib.sh
index 6cd9e4e..da12fd0 100644
--- a/.extras/image-builder/lib.sh
+++ b/.extras/image-builder/lib.sh
@@ -46,12 +46,13 @@ fetch() {
}
# txz_hash DIR
-# Stable hash of the set of .txz files in DIR (names + contents), order
+# Stable hash of the set of Slackware package files (*.t?z) in DIR (names +
+# contents), order
# independent. Empty/absent dir -> empty string.
txz_hash() {
local dir="$1"
[[ -d "$dir" ]] || { printf ''; return 0; }
- local files; files=$(find "$dir" -maxdepth 1 -name '*.txz' -type f | sort)
+ local files; files=$(find "$dir" -maxdepth 1 -name '*.t?z' -type f | sort)
[[ -n "$files" ]] || { printf ''; return 0; }
# Hash sorted "name sha256" lines so reordering does not change output.
while IFS= read -r f; do