--- /usr/share/apport/package-hooks/source_eucalyptus.py.dist 2010-03-18 12:36:26.000000000 -0500 +++ /usr/share/apport/package-hooks/source_eucalyptus.py 2010-03-18 15:21:28.000000000 -0500 @@ -8,17 +8,18 @@ 'eucalyptus-nc', 'eucalyptus-gl', 'uec-component-listener'] version = '' + versions = '' for package in packages: try: - vesion = packaging.get_versions(package) - except ValueError: + version = packaging.get_versions(package) + except (ValueError, AttributeError): version = 'N/A' if version is None: version = 'N/A' versions += '%s %s\n' %(package, version) report['EucalyptusInstalledVersions'] = versions -def add_info(report): +def add_info(report, ui): # Report on the versions that are installed, including: vmbuilder, ec2-api-tools # ec2-ami-tools, euca2ools, and eucalyptus* installed_packages(report) @@ -39,13 +40,13 @@ ui.information("As part of the bug reporting process, you'll be asked a series of questions to help provide a more descriptive bug report. Please answer the following questions to the best of your ability. Afterwards, a browser will be opened to finish filling this as a bug in the Launchpad bug tracking system.") - response = ui.yesno("Is this issue easily reproducable in the current version of Eucalytptus?") + response = ui.yesno("Is this issue easily reproducible in the current version of Eucalyptus?") if response == None: #user canceled raise StopIteration if response == False: report['EasilyReproduced'] = 'No' - elif rsponse == True: + elif response == True: report['EasilyReproduced'] = 'Yes' ui.information("Please provide clear steps so that the Ubuntu Developers can reproduce your bug.") @@ -55,7 +56,7 @@ if response == False: report['UECDescSetup'] = 'No' - ui.information("It would be benefial to the bug report if you could provide how your UEC is setup.") + ui.information("It would be beneficial to the bug report if you could provide how your UEC is setup.") if response == True: report['UECDescSetup'] = 'Yes' ui.information("Please provide a detailed description of your UEC setup.")