]> git.ipfire.org Git - pakfire.git/commitdiff
Make shell without a source package possible again.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 27 Oct 2012 20:39:08 +0000 (22:39 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 27 Oct 2012 20:39:08 +0000 (22:39 +0200)
python/pakfire/base.py

index 3722fb120bc12d2b03538e4ac00c3d0d7a9ac79e..0ee25bd0338858c7d41f3e59edd126fdfa210a7e 100644 (file)
@@ -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)