From 07e7ac6025980019712f07543cd26e539b41bf79 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Sat, 13 Feb 2010 19:17:20 +0000 Subject: [PATCH] Only show "(was ...)" if the implementation ID changed Before, simply reloading the same XML file would display things like "1.0 (was 1.0)". However, commit d8f59932 broke that by reloading the feed even if no changes are detected, in case some other instance of 0launch updated the file. (note that it's still possible to get the "X (was X)" message, if the ID changed but the version number didn't) --- zeroinstall/0launch-gui/iface_browser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zeroinstall/0launch-gui/iface_browser.py b/zeroinstall/0launch-gui/iface_browser.py index 5ffa15e..bb19f64 100644 --- a/zeroinstall/0launch-gui/iface_browser.py +++ b/zeroinstall/0launch-gui/iface_browser.py @@ -357,7 +357,7 @@ class InterfaceBrowser: if impl: old_impl = self.original_implementation.get(iface, None) version_str = impl.get_version() - if old_impl is not None and old_impl is not impl: + if old_impl is not None and old_impl.id != impl.id: version_str += _(' (was %s)') % old_impl.get_version() self.model[iter][InterfaceBrowser.VERSION] = version_str -- 2.11.4.GIT