summaryrefslogtreecommitdiffstats
path: root/prt-get/prt-get.diff
blob: f5412dfcd177691c9db21b8402c8c18c6901dc2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/installtransaction.cpp b/src/installtransaction.cpp
index 849931a..70e5e37 100644
--- a/src/installtransaction.cpp
+++ b/src/installtransaction.cpp
@@ -658,5 +658,7 @@ string InstallTransaction::getPkgmkPackageDir()
 
 string InstallTransaction::getPkgmkCompressionMode()
 {
-    return getPkgmkSetting("PKGMK_COMPRESSION_MODE");
+    string value = getPkgmkSetting("PKGMK_COMPRESSION_MODE");
+
+    return value.size() ? value : "gz";
 }