From: Michael Tremer Date: Sat, 27 Oct 2012 20:39:08 +0000 (+0200) Subject: Make shell without a source package possible again. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=763c522eecf4959452d76ef8d6ed4bb569d88054;p=people%2Fstevee%2Fpakfire.git Make shell without a source package possible again. --- diff --git a/python/pakfire/base.py b/python/pakfire/base.py index 3722fb12..0ee25bd0 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)