From 763c522eecf4959452d76ef8d6ed4bb569d88054 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 27 Oct 2012 22:39:08 +0200 Subject: [PATCH] Make shell without a source package possible again. --- python/pakfire/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/pakfire/base.py b/python/pakfire/base.py index 3722fb120..0ee25bd03 100644 --- a/python/pakfire/base.py +++ b/python/pakfire/base.py @@ -688,7 +688,7 @@ class PakfireBuilder(Pakfire): 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): + if pkg and pkg.endswith(".%s" % MAKEFILE_EXTENSION): pkg = self.dist(pkg, resultdir=LOCAL_TMP_PATH) b = builder.BuildEnviron(self, pkg, **kwargs) -- 2.39.5