From: Michael Tremer Date: Sat, 8 Oct 2011 14:37:48 +0000 (+0200) Subject: "pakfire info " also liked directories. X-Git-Tag: 0.9.13~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5dda5744150228311d6cdd87d675ac65a8b9e6bd;p=pakfire.git "pakfire info " also liked directories. --- diff --git a/python/pakfire/base.py b/python/pakfire/base.py index 53314d695..455a5d47f 100644 --- a/python/pakfire/base.py +++ b/python/pakfire/base.py @@ -366,7 +366,7 @@ class Pakfire(object): # For all patterns we run a single search which returns us a bunch # of solvables which are transformed into Package objects. for pattern in patterns: - if os.path.exists(pattern): + if os.path.exists(pattern) and not os.path.isdir(pattern): pkg = packages.open(self, self.repos.dummy, pattern) if pkg: pkgs.append(pkg)