summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Keating <jkeating@redhat.com>2010-06-11 15:10:01 -0700
committerJesse Keating <jkeating@redhat.com>2010-06-11 15:10:01 -0700
commit9bf62451b73210254cd52927640e1078b9b4e43d (patch)
tree98fe3eff5a5fd52567fad3e2fc0f3979e9ea79db
parent7448b219fb82d3b8189abf3ef5d301eb19b0eaa4 (diff)
downloadfedpkg-9bf62451b73210254cd52927640e1078b9b4e43d.tar.gz
fedpkg-9bf62451b73210254cd52927640e1078b9b4e43d.tar.xz
fedpkg-9bf62451b73210254cd52927640e1078b9b4e43d.zip
Hack to force use of the stg koji environment
While we test in stg we want to use a different url. Easier to hack it here then on everybody's systems.
-rw-r--r--src/pyfedpkg/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pyfedpkg/__init__.py b/src/pyfedpkg/__init__.py
index 26ed468..5186c87 100644
--- a/src/pyfedpkg/__init__.py
+++ b/src/pyfedpkg/__init__.py
@@ -538,6 +538,10 @@ class PackageModule:
if config.has_section('koji'):
for name, value in config.items('koji'):
if defaults.has_key(name):
+ # HAAACK to force use of the stg environment
+ if value.startswith('http://koji.fedoraproject.org'):
+ value = value.replace('http://koji.fedoraproject.org',
+ 'http://koji.stg.fedoraproject.org')
defaults[name] = value
# Expand out the directory options
for name in ('topdir', 'cert', 'ca', 'serverca'):