summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJesse Keating <jkeating@redhat.com>2010-06-18 16:55:12 -0700
committerJesse Keating <jkeating@redhat.com>2010-06-18 16:55:12 -0700
commit319e6da586aef412f027a78c6247e0d09788e980 (patch)
treeeb6c0cc30e77c5d64edac1e008c4fac93047e6cc /src
parentac2eeb63fff5d21dd584e96e0a14a45792d73cf9 (diff)
downloadfedora-packager-319e6da586aef412f027a78c6247e0d09788e980.tar.gz
fedora-packager-319e6da586aef412f027a78c6247e0d09788e980.tar.xz
fedora-packager-319e6da586aef412f027a78c6247e0d09788e980.zip
Handle our common files not existing yet.
Diffstat (limited to 'src')
-rw-r--r--src/pyfedpkg/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pyfedpkg/__init__.py b/src/pyfedpkg/__init__.py
index b4d1a91..bf5fb12 100644
--- a/src/pyfedpkg/__init__.py
+++ b/src/pyfedpkg/__init__.py
@@ -611,8 +611,9 @@ class PackageModule:
# now process the upload files
self.new_sources(uploadfiles)
# And finally add all the files we know about (and our stock files)
- files.append('.gitignore')
- files.append('sources')
+ for file in ('.gitignore', 'sources'):
+ if os.path.exists(file):
+ files.append(file)
rv = self.repo.index.add(files)
# Return to the caller and let them take it from there.
os.chdir(oldpath)