summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Keating <jkeating@redhat.com>2011-02-14 13:58:05 -0700
committerJesse Keating <jkeating@redhat.com>2011-02-14 13:58:05 -0700
commitd9bcb58385f9bb03f6ceb2390b29f25d5951fe8c (patch)
treeb1f20127795cf8a33fda48c6e34f74dca670502f
parentee4dc6c40bb9b5cc0375ea1636f72c2f914d887e (diff)
downloadfedora-packager-d9bcb58385f9bb03f6ceb2390b29f25d5951fe8c.tar.gz
fedora-packager-d9bcb58385f9bb03f6ceb2390b29f25d5951fe8c.tar.xz
fedora-packager-d9bcb58385f9bb03f6ceb2390b29f25d5951fe8c.zip
Don't use temporary editor files for spec (#677121)
-rw-r--r--src/pyfedpkg/__init__.py2
1 files changed, 1 insertions, 1 deletions
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