summaryrefslogtreecommitdiff
path: root/SoftwareProperties/SoftwareProperties.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-02-27 17:56:31 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2006-02-27 17:56:31 +0100
commit160dcc7d66fb94b95932b81787358d3a1b615412 (patch)
treefb0c57bc2430e46d9116b156f7a542a6be77a5bd /SoftwareProperties/SoftwareProperties.py
parent04aed87e0f74aa65f82216706c41085fa539a28f (diff)
downloadpython-apt-160dcc7d66fb94b95932b81787358d3a1b615412.tar.gz
* don't hide the details for the security upgrades yet
Diffstat (limited to 'SoftwareProperties/SoftwareProperties.py')
-rw-r--r--SoftwareProperties/SoftwareProperties.py20
1 files changed, 13 insertions, 7 deletions
diff --git a/SoftwareProperties/SoftwareProperties.py b/SoftwareProperties/SoftwareProperties.py
index 99ec292f..1c6963a0 100644
--- a/SoftwareProperties/SoftwareProperties.py
+++ b/SoftwareProperties/SoftwareProperties.py
@@ -299,11 +299,16 @@ class SoftwareProperties(SimpleGladeApp):
"""Render a nice output to show the source in a treeview"""
(nice_type, nice_dist, nice_comps, special) = self.matcher.match(source)
+ # FIXME: add this back when it's more consistent
+ #if special in (aptsources.SOURCE_UPDATES,
+ # aptsources.SOURCE_BACKPORTS,
+ # aptsources.SOURCE_SECURITY):
+ # contents = "<b>%s</b>" % nice_dist
+ #elif special == aptsources.SOURCE_SYSTEM:
if special in (aptsources.SOURCE_UPDATES,
- aptsources.SOURCE_BACKPORTS,
- aptsources.SOURCE_SECURITY):
- contents = "<b>%s</b>" % nice_dist
- elif special == aptsources.SOURCE_SYSTEM:
+ aptsources.SOURCE_BACKPORTS,
+ aptsources.SOURCE_SECURITY,
+ aptsources.SOURCE_SYSTEM):
contents = "<b>%s</b>" % nice_dist
if source.type in ("deb-src", "rpm-src"):
contents += " (%s)" % nice_type
@@ -319,9 +324,10 @@ class SoftwareProperties(SimpleGladeApp):
def reload_sourceslist(self):
self.source_store.clear()
- if self.sourceslist.check_for_endangered_dists():
- self.button_revert.set_sensitive(True)
- self.save_sourceslist()
+ # FIXME: this happens with way too much magic, we need to either
+ # ask the user or provide a different way to present this
+ # )maybe some sort of configuration is enough?)
+ self.sourceslist.check_for_endangered_dists()
for source in self.sourceslist.list:
if source.invalid:
continue