summaryrefslogtreecommitdiffstats
path: root/src/fedpkg.py
diff options
context:
space:
mode:
authorJesse Keating <jkeating@redhat.com>2010-07-08 17:34:51 -0700
committerDennis Gilmore <dennis@ausil.us>2010-07-08 19:44:55 -0500
commit69a5e65d7488b8295856e29ab5f6358eb6c47aba (patch)
tree76484d1e145ecfd9cf631790065aecb8b862b248 /src/fedpkg.py
parent32dab84b654b528b773a0ad4224dd3091679f605 (diff)
downloadfedora-packager-69a5e65d7488b8295856e29ab5f6358eb6c47aba.zip
fedora-packager-69a5e65d7488b8295856e29ab5f6358eb6c47aba.tar.gz
fedora-packager-69a5e65d7488b8295856e29ab5f6358eb6c47aba.tar.xz
Handle importing an srpm into an empty repo
In the case of a fresh module created upstream, we don't have a spec file to use for information, so we have to make a git repo outside of the module.
Diffstat (limited to 'src/fedpkg.py')
-rwxr-xr-xsrc/fedpkg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fedpkg.py b/src/fedpkg.py
index 5458efd..a81665c 100755
--- a/src/fedpkg.py
+++ b/src/fedpkg.py
@@ -459,8 +459,8 @@ def import_srpm(args):
sys.exit(0)
if not args.create:
try:
+ uploadfiles = pyfedpkg.import_srpm(args.srpm, path=args.path)
mymodule = pyfedpkg.PackageModule(args.path)
- uploadfiles = pyfedpkg.import_srpm(mymodule.repo, args.srpm)
mymodule.upload(uploadfiles, replace=True)
except pyfedpkg.FedpkgError, e:
log.error('Could import srpm: %s' % e)