From 7448b219fb82d3b8189abf3ef5d301eb19b0eaa4 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Thu, 10 Jun 2010 11:12:46 -0700 Subject: 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. --- 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 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: -- cgit