From c4b49e367d1979503864b36ca957bb97f4e8afa2 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Fri, 28 Dec 2007 16:42:07 +0000 Subject: [PATCH] Removed warning about old GnuPG. Fixes a problem parsing the version string on SUSE (reported by Thomas Formella). --- zeroinstall/0launch-gui/mainwindow.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/zeroinstall/0launch-gui/mainwindow.py b/zeroinstall/0launch-gui/mainwindow.py index 6bacd4a..eb0bd7e 100644 --- a/zeroinstall/0launch-gui/mainwindow.py +++ b/zeroinstall/0launch-gui/mainwindow.py @@ -60,22 +60,6 @@ class MainWindow: preferences.show_preferences() self.window.connect('response', response) - # Warnings - try: - version_stream = os.popen('gpg --version') - gpg_version = map(int, version_stream.readline().split(' ')[-1].strip().split('.')) - version_stream.close() - except Exception, ex: - warn("Failed to get GPG version: %s", ex) - else: - if gpg_version < [1, 4, 2, 2]: - # Don't want about versions < 1.4.6 because Ubuntu fixed it without - # updating the version number. - warning_label = gtk.Label("Warning: Your version of gnupg (%s) contains a signature\n" - "checking vulnerability. Suggest upgrading to 1.4.6 or later." % '.'.join(map(str, gpg_version))) - self.window.vbox.pack_start(warning_label, False, True, 0) - warning_label.show() - def destroy(self): self.window.destroy() -- 2.11.4.GIT