summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose V Beneyto <sepen@crux.nu>2012-03-05 14:20:45 +0100
committerJuergen Daubert <jue@jue.li>2012-03-05 14:20:45 +0100
commit3088bb8def490ec685b5d9ff199d3dcecf6a83b6 (patch)
tree3640db3fc60f562065b7da18a2f38dc0d5930de5
parent49009061e2f105d2b1eab449427081ca2fb9322f (diff)
downloadprt-utils-3088bb8def490ec685b5d9ff199d3dcecf6a83b6.tar.gz
prt-utils-3088bb8def490ec685b5d9ff199d3dcecf6a83b6.tar.xz
prtwash: use compression-mode defined in pkgmk-conf
-rwxr-xr-xprtwash4
1 files changed, 3 insertions, 1 deletions
diff --git a/prtwash b/prtwash
index 064c5d5..757f82e 100755
--- a/prtwash
+++ b/prtwash
@@ -139,7 +139,9 @@ wash() {
else
tosave=() # array of files not to be deleted
. "$1"/Pkgfile
- packagename="$name"#"$version"-"$release"".pkg.tar.gz"
+ PKGMK_COMPRESSION_MODE="xz"
+ [ -f /etc/pkgmk.conf ] && . /etc/pkgmk.conf
+ packagename="$name"#"$version"-"$release"".pkg.tar.$PKGMK_COMPRESSION_MODE"
if [ ! "$removesources" = 1 ]; then
# keep sources

Generated by cgit