From 3accab06f47415849cc7b926b8cdfc60cad77642 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 27 Oct 2012 22:19:07 +0200 Subject: [PATCH] Make is possible to pass makefiles to pakfire-builder shell ... again. --- python/pakfire/base.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/pakfire/base.py b/python/pakfire/base.py index 628a79625..495af553d 100644 --- a/python/pakfire/base.py +++ b/python/pakfire/base.py @@ -641,7 +641,6 @@ class PakfireBuilder(Pakfire): return pkg.dist(resultdir=resultdir) def build(self, pkg, resultdirs=None, shell=False, install_test=True, after_shell=False, **kwargs): - # As the BuildEnviron is only able to handle source packages, we must package makefiles. if pkg.endswith(".%s" % MAKEFILE_EXTENSION): pkg = self.dist(pkg, resultdir=LOCAL_TMP_PATH) @@ -688,6 +687,10 @@ class PakfireBuilder(Pakfire): b.stop() def shell(self, pkg, **kwargs): + # As the BuildEnviron is only able to handle source packages, we must package makefiles. + if pkg.endswith(".%s" % MAKEFILE_EXTENSION): + pkg = self.dist(pkg, resultdir=LOCAL_TMP_PATH) + b = builder.BuildEnviron(self, pkg, **kwargs) try: -- 2.39.5