From: Michael Tremer Date: Tue, 18 Dec 2012 23:19:43 +0000 (+0100) Subject: Add some more checks before assuming something may be a package file. X-Git-Tag: 0.9.24~8^2~2^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=59c8ae58b5f8d9a912954ea5aa00bb746616e609;p=pakfire.git Add some more checks before assuming something may be a package file. --- 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