diff options
author | Jesse Keating <jkeating@redhat.com> | 2010-06-10 11:12:46 -0700 |
---|---|---|
committer | Jesse Keating <jkeating@redhat.com> | 2010-06-10 11:12:46 -0700 |
commit | 7448b219fb82d3b8189abf3ef5d301eb19b0eaa4 (patch) | |
tree | 4a1847f5c8336404d673301d70dc01ca0c98ec5a | |
parent | b7ea96ec40e4dd4ac2bedd52b12e1176ec50c580 (diff) | |
download | fedora-packager-7448b219fb82d3b8189abf3ef5d301eb19b0eaa4.tar.gz fedora-packager-7448b219fb82d3b8189abf3ef5d301eb19b0eaa4.tar.xz fedora-packager-7448b219fb82d3b8189abf3ef5d301eb19b0eaa4.zip |
Construct the url for koji correctly
Koji expects a ? to separate the repo from the path, but this can be
blank so just put it before the #hash.
-rw-r--r-- | src/pyfedpkg/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pyfedpkg/__init__.py b/src/pyfedpkg/__init__.py index a90d35d..26ed468 100644 --- a/src/pyfedpkg/__init__.py +++ b/src/pyfedpkg/__init__.py @@ -327,7 +327,7 @@ class PackageModule: raise FedpkgError('There are unpushed changes in your repo') # Get the commit hash to build commit = self.repo.commits(max_count=1)[0].id - url = ANONGITURL % {'module': self.module} + '#%s' % commit + url = ANONGITURL % {'module': self.module} + '?#%s' % commit # Check to see if the target is valid build_target = self.kojisession.getBuildTarget(self.target) if not build_target: |