From 5167ddb7934b7ee0df28744ec0519bf2a3f21097 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 28 Oct 2012 14:58:38 +0100 Subject: [PATCH] base: Remove unused environ property. --- python/pakfire/base.py | 9 --------- python/pakfire/packages/make.py | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) 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, -- 2.39.5