summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Keating <jkeating@redhat.com>2010-07-31 09:49:57 -0700
committerJesse Keating <jkeating@redhat.com>2010-07-31 09:51:23 -0700
commit748b874e68198df5d4f12139fefeed19c4cbc293 (patch)
tree1cfe966d5a81c9b897b93cec05bdec46f51cfbbd
parent63715aea69aefdc21f12a08dea99c3c19d7174dc (diff)
downloadfedora-packager-748b874e68198df5d4f12139fefeed19c4cbc293.tar.gz
fedora-packager-748b874e68198df5d4f12139fefeed19c4cbc293.tar.xz
fedora-packager-748b874e68198df5d4f12139fefeed19c4cbc293.zip
Fix chainbuild to work for rawhide at least
Need more logic here to work with other chainable targets like epel.
-rw-r--r--src/pyfedpkg/__init__.py6
1 files 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)