From 59c8ae58b5f8d9a912954ea5aa00bb746616e609 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 19 Dec 2012 00:19:43 +0100 Subject: [PATCH] Add some more checks before assuming something may be a package file. --- 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 70f4e2231..ef63c55b3 100644 --- a/python/pakfire/base.py +++ b/python/pakfire/base.py @@ -173,7 +173,7 @@ class Pakfire(object): continue # This looks like a file. - elif os.path.exists(req): + elif req.endswith(".%s" % PACKAGE_EXTENSION) and os.path.exists(req) and os.path.isfile(req): local_packages.append(req) continue -- 2.39.5