From 6ff45a75a7c64b940e35e55324e8eb30537b595e Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Tue, 28 Oct 2008 14:19:14 -0400 Subject: 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. --- exception.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'exception.py') 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", -- cgit