diff options
author | Dennis Gilmore <dennis@ausil.us> | 2010-06-16 08:58:24 -0500 |
---|---|---|
committer | Dennis Gilmore <dennis@ausil.us> | 2010-06-16 08:58:24 -0500 |
commit | a0906dcea34827c094df8624072b2b8756738a6d (patch) | |
tree | 9b53444bd9d470bf3363a68dbdb9c442d22681b2 | |
parent | 7ce857af04faf6db8a7bafc600110bc6e75800ce (diff) | |
parent | 8cb33bddd1feeceb55d979b60531bb9b248d7b93 (diff) | |
download | fedora-packager-a0906dcea34827c094df8624072b2b8756738a6d.tar.gz fedora-packager-a0906dcea34827c094df8624072b2b8756738a6d.tar.xz fedora-packager-a0906dcea34827c094df8624072b2b8756738a6d.zip |
Merge branch 'master' of ssh://git.fedorahosted.org/git/fedora-packager
-rw-r--r-- | fedora-packager.spec | 2 | ||||
-rw-r--r-- | src/pyfedpkg/__init__.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/fedora-packager.spec b/fedora-packager.spec index 827f06f..02e02b3 100644 --- a/fedora-packager.spec +++ b/fedora-packager.spec @@ -20,7 +20,7 @@ Requires: mock cvs curl wget make openssh-clients Requires: pyOpenSSL python-pycurl Requires: redhat-rpm-config Requires: python-offtrac -Requires: GitPython python-argparse +Requires: GitPython >= 0.2.0, python-argparse BuildArch: noarch diff --git a/src/pyfedpkg/__init__.py b/src/pyfedpkg/__init__.py index 5186c87..9350207 100644 --- a/src/pyfedpkg/__init__.py +++ b/src/pyfedpkg/__init__.py @@ -318,7 +318,7 @@ class PackageModule: if not url: # We don't have a url, so build from the latest commit # Check to see if the tree is dirty - if self.repo.is_dirty: + if self.repo.is_dirty(): raise FedpkgError('There are uncommitted changes in your repo') # Need to check here to see if the local commit you want to build is # pushed or not @@ -326,7 +326,7 @@ class PackageModule: if self.repo.git.rev_list('...origin/%s' % self.repo.active_branch): raise FedpkgError('There are unpushed changes in your repo') # Get the commit hash to build - commit = self.repo.commits(max_count=1)[0].id + commit = self.repo.iter_commits().next().sha url = ANONGITURL % {'module': self.module} + '?#%s' % commit # Check to see if the target is valid build_target = self.kojisession.getBuildTarget(self.target) |