summaryrefslogtreecommitdiffstats
path: root/exception.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2008-10-28 14:19:14 -0400
committerChris Lumens <clumens@redhat.com>2008-10-28 14:19:38 -0400
commit6ff45a75a7c64b940e35e55324e8eb30537b595e (patch)
tree10f0c637539017ea32e9e8400c947154776c2793 /exception.py
parent3dfbd17328bf9fc02e03616fd355f6f9e4277e0e (diff)
downloadanaconda-6ff45a75a7c64b940e35e55324e8eb30537b595e.tar.gz
anaconda-6ff45a75a7c64b940e35e55324e8eb30537b595e.tar.xz
anaconda-6ff45a75a7c64b940e35e55324e8eb30537b595e.zip
Make sure the productVersion given by .treeinfo exists in bugzilla (#468657).
Prerelease version of Fedora sometimes get version numbers in .treeinfo or .buildstamp like 10-Beta. However, this version does not exist in bugzilla so we get an error trying to save the bug. This could also happen in respins. So, grab a list of all the versions that are valid for the product out of bugzilla and make sure productVersion exists. If not, either use the develVersion from the installclass or just use the last one out of the the list.
Diffstat (limited to 'exception.py')
-rw-r--r--exception.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/exception.py b/exception.py
index b3bd6e039..c54c9a16f 100644
--- a/exception.py
+++ b/exception.py
@@ -412,7 +412,8 @@ def saveToBugzilla(anaconda, exn, dest):
if len(buglist) == 0:
bug = withBugzillaDo(filer, lambda b: b.createbug(product=product.productName,
component="anaconda",
- version=product.productVersion,
+ version=filer.getversion(product.productVersion,
+ product.productName),
platform=rpmUtils.arch.getBaseArch(),
bug_severity="medium",
priority="medium",