From 5dda5744150228311d6cdd87d675ac65a8b9e6bd Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 8 Oct 2011 16:37:48 +0200 Subject: [PATCH] "pakfire info " also liked directories. --- 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 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) -- 2.39.5