add support for PKGMK_COMPRESSION_MODE

This commit is contained in:
Johannes Winkelmann 2010-05-18 21:14:04 +02:00
parent cf616df902
commit 418ed7c6b4
2 changed files with 7 additions and 1 deletions

View File

@ -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");
}

View File

@ -99,6 +99,7 @@ public:
const list< pair<string, InstallInfo> >& installError() const;
static string getPkgmkPackageDir();
static string getPkgmkCompressionMode();
private:
bool calculateDependencies();