summaryrefslogtreecommitdiffstats
path: root/src/fedpkg.py
diff options
context:
space:
mode:
authorJesse Keating <jkeating@redhat.com>2010-07-28 17:48:00 -0700
committerJesse Keating <jkeating@redhat.com>2010-07-29 12:34:30 -0700
commit92fc81be7af5b6e78a6fbad5aed9c2ac47eae60c (patch)
treed02704ef9cbf1f2b80c78784536e9ee7ee8069fa /src/fedpkg.py
parentc7250aec5249264595d8679ed24fefc56d5eeead (diff)
downloadfedora-packager-92fc81be7af5b6e78a6fbad5aed9c2ac47eae60c.zip
fedora-packager-92fc81be7af5b6e78a6fbad5aed9c2ac47eae60c.tar.gz
fedora-packager-92fc81be7af5b6e78a6fbad5aed9c2ac47eae60c.tar.xz
Move 'sources' to not be part of the class
This might work around a weird issue where the koji builders can't read the git config strings in the chroot
Diffstat (limited to 'src/fedpkg.py')
-rwxr-xr-xsrc/fedpkg.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/fedpkg.py b/src/fedpkg.py
index edc7bb2..e99c476 100755
--- a/src/fedpkg.py
+++ b/src/fedpkg.py
@@ -574,8 +574,7 @@ def scratchbuild(args):
def sources(args):
try:
- mymodule = pyfedpkg.PackageModule(args.path)
- mymodule.sources(args.outdir)
+ pyfedpkg.sources(args.path, args.outdir)
except pyfedpkg.FedpkgError, e:
log.error('Could not download sources: %s' % e)
sys.exit(1)
@@ -583,7 +582,7 @@ def sources(args):
def srpm(args):
try:
mymodule = pyfedpkg.PackageModule(args.path)
- mymodule.sources(args.path)
+ pyfedpkg.sources(args.path)
if args.md5:
mymodule.srpm('md5')
else: