From d9bcb58385f9bb03f6ceb2390b29f25d5951fe8c Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Mon, 14 Feb 2011 13:58:05 -0700 Subject: Don't use temporary editor files for spec (#677121) --- src/pyfedpkg/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyfedpkg/__init__.py b/src/pyfedpkg/__init__.py index a9d090f..17ac668 100644 --- a/src/pyfedpkg/__init__.py +++ b/src/pyfedpkg/__init__.py @@ -1396,7 +1396,7 @@ class PackageModule: files = os.listdir(self.path) # Search the files for the first one that ends with ".spec" for f in files: - if f.endswith('.spec'): + if f.endswith('.spec') and not f.startswith('.'): return f if f == 'dead.package': deadpackage = True -- cgit