From: Michael Tremer Date: Sun, 28 Oct 2012 13:58:38 +0000 (+0100) Subject: base: Remove unused environ property. X-Git-Tag: 0.9.24~32 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5167ddb7934b7ee0df28744ec0519bf2a3f21097;p=pakfire.git base: Remove unused environ property. --- diff --git a/python/pakfire/base.py b/python/pakfire/base.py index 5a9630423..d4f555fb1 100644 --- a/python/pakfire/base.py +++ b/python/pakfire/base.py @@ -112,15 +112,6 @@ class Pakfire(object): self.initialized = False - @property - def environ(self): - env = {} - - # Get distribution information. - env.update(self.distro.environ) - - return env - @property def supported_arches(self): return system.supported_arches diff --git a/python/pakfire/packages/make.py b/python/pakfire/packages/make.py index 37d9c5e5c..4420ab2f1 100644 --- a/python/pakfire/packages/make.py +++ b/python/pakfire/packages/make.py @@ -54,7 +54,7 @@ class MakefileBase(Package): self.filename = os.path.abspath(filename) # Update environment. - environ = self.pakfire.environ + environ = self.pakfire.distro.environ environ.update({ "BASEDIR" : os.path.dirname(self.filename), "PARALLELISMFLAGS" : "-j%d" % system.parallelism,