From d0c4f29b444405405ef142022e061649b2d126ed Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Dec 11 2017 17:50:46 +0000 Subject: just use original url for non-git sources --- diff --git a/koji/daemon.py b/koji/daemon.py index 78c0c4d..4e6a974 100644 --- a/koji/daemon.py +++ b/koji/daemon.py @@ -510,13 +510,7 @@ class SCM(object): 'url': self.url, 'source': '', } - if self.scmtype.startswith('CVS') or self.scmtype.startswith('SVN'): - scheme = self.scheme[:-3] - netloc = self.host - path = self.repository - query = self.module - fragment = self.revision - elif self.scmtype.startswith('GIT'): + if self.scmtype.startswith('GIT'): cmd = ['git', 'rev-parse', 'HEAD'] fragment = subprocess.check_output(cmd, cwd=self.sourcedir).strip() scheme = self.scheme[:-3] @@ -524,6 +518,9 @@ class SCM(object): path = self.repository query = self.module r['source'] = urlparse.urlunsplit([scheme, netloc, path, query, fragment]) + else: + # just use the same url + r['source'] = self.url return r ## END kojikamid dup