From: Michael Tremer Date: Sat, 27 Oct 2012 20:39:08 +0000 (+0200) Subject: Make shell without a source package possible again. X-Git-Tag: 0.9.24~45 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=763c522eecf4959452d76ef8d6ed4bb569d88054;p=pakfire.git Make shell without a source package possible again. --- 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)