diff options
author | Johannes Winkelmann <jw@smts.ch> | 2010-05-18 21:14:04 +0200 |
---|---|---|
committer | Johannes Winkelmann <jw@smts.ch> | 2010-05-18 21:14:04 +0200 |
commit | 418ed7c6b448ebbb74bc25669afcda72c2b1cf3c (patch) | |
tree | b519f66e03ae07bbffca657df66f869e951dc637 | |
parent | cf616df902ee6d9e447a0aa829c7c7754d313f87 (diff) | |
download | prt-get-418ed7c6b448ebbb74bc25669afcda72c2b1cf3c.tar.gz prt-get-418ed7c6b448ebbb74bc25669afcda72c2b1cf3c.tar.xz |
add support for PKGMK_COMPRESSION_MODE
-rw-r--r-- | src/installtransaction.cpp | 7 | ||||
-rw-r--r-- | src/installtransaction.h | 1 |
2 files changed, 7 insertions, 1 deletions
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<string, InstallInfo> >& installError() const; static string getPkgmkPackageDir(); + static string getPkgmkCompressionMode(); private: bool calculateDependencies(); |