From 748b874e68198df5d4f12139fefeed19c4cbc293 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Sat, 31 Jul 2010 09:49:57 -0700 Subject: Fix chainbuild to work for rawhide at least Need more logic here to work with other chainable targets like epel. --- src/pyfedpkg/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pyfedpkg/__init__.py b/src/pyfedpkg/__init__.py index 992ca54..67df332 100644 --- a/src/pyfedpkg/__init__.py +++ b/src/pyfedpkg/__init__.py @@ -59,7 +59,7 @@ log = logging.getLogger("fedpkg") log.addHandler(h) # Define some helper functions, they start with _ -def _hash_file(file, hashtype): +def _hash_file(file, Hashtype): """Return the hash of a file given a hash type""" try: @@ -359,7 +359,9 @@ def get_latest_commit(module): # This is stupid that I have to use subprocess :/ url = ANONGITURL % {'module': module} - cmd = ['git', 'ls-remote', url, 'master'] + # This cmd below only works to scratch build rawhide + # We need something better for epel + cmd = ['git', 'ls-remote', url, 'refs/heads/master'] try : proc = subprocess.Popen(cmd, stderr=subprocess.PIPE, stdout=subprocess.PIPE) -- cgit