From 418ed7c6b448ebbb74bc25669afcda72c2b1cf3c Mon Sep 17 00:00:00 2001 From: Johannes Winkelmann Date: Tue, 18 May 2010 21:14:04 +0200 Subject: [PATCH] add support for PKGMK_COMPRESSION_MODE --- src/installtransaction.cpp | 7 ++++++- src/installtransaction.h | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/installtransaction.cpp b/src/installtransaction.cpp index 3bcec26..849931a 100644 --- a/src/installtransaction.cpp +++ b/src/installtransaction.cpp @@ -347,7 +347,7 @@ InstallTransaction::installPackage( const Package* package, args += package->name() + "#" + package->version() + "-" + - package->release() + ".pkg.tar.gz"; + package->release() + ".pkg.tar." + getPkgmkCompressionMode(); // - inform the user about what's happening @@ -655,3 +655,8 @@ string InstallTransaction::getPkgmkPackageDir() { return getPkgmkSetting("PKGMK_PACKAGE_DIR"); } + +string InstallTransaction::getPkgmkCompressionMode() +{ + return getPkgmkSetting("PKGMK_COMPRESSION_MODE"); +} diff --git a/src/installtransaction.h b/src/installtransaction.h index 248df8e..113abf2 100644 --- a/src/installtransaction.h +++ b/src/installtransaction.h @@ -99,6 +99,7 @@ public: const list< pair >& installError() const; static string getPkgmkPackageDir(); + static string getPkgmkCompressionMode(); private: bool calculateDependencies();