summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <egon@top>2005-12-12 12:47:14 +0100
committerMichael Vogt <egon@top>2005-12-12 12:47:14 +0100
commitdc831f6f6113d3fb0e723dbd1b8577196a3df6c1 (patch)
tree4527424e65cd2e7d9b8507b24ba3a14ee6840971
parentb070222e78249be7956b80603fe8f7da7302d989 (diff)
downloadpython-apt-dc831f6f6113d3fb0e723dbd1b8577196a3df6c1.tar.gz
* removed some debug stuff
-rw-r--r--UpdateManager/MetaRelease.py8
-rw-r--r--gnome-software-properties1
2 files changed, 5 insertions, 4 deletions
diff --git a/UpdateManager/MetaRelease.py b/UpdateManager/MetaRelease.py
index b5383a46..71f88245 100644
--- a/UpdateManager/MetaRelease.py
+++ b/UpdateManager/MetaRelease.py
@@ -76,7 +76,7 @@ class MetaRelease(gobject.GObject):
return dist
def check(self):
- print "check"
+ #print "check"
# check if we have a metarelease_information file
if self.metarelease_information != None:
self.parse()
@@ -86,7 +86,7 @@ class MetaRelease(gobject.GObject):
return True
def parse(self):
- print "parse"
+ #print "parse"
current_dist_name = self.get_dist()
current_dist = None
dists = []
@@ -123,7 +123,7 @@ class MetaRelease(gobject.GObject):
for dist in dists:
if dist.date > current_dist.date:
upgradable_to = dist
- print "new dist: %s" % upgradable_to
+ #print "new dist: %s" % upgradable_to
break
# only warn if unsupported and a new dist is available (because
@@ -139,7 +139,7 @@ class MetaRelease(gobject.GObject):
# the network thread that tries to fetch the meta-index file
# can't touch the gui, runs as a thread
def download(self):
- print "download"
+ #print "download"
lastmodified = 0
req = urllib2.Request(self.METARELEASE_URI)
if os.access(self.METARELEASE_FILE, os.W_OK):
diff --git a/gnome-software-properties b/gnome-software-properties
index 3b561b84..d5cbd0ce 100644
--- a/gnome-software-properties
+++ b/gnome-software-properties
@@ -75,3 +75,4 @@ if __name__ == "__main__":
#data_dir="/tmp/xxx/share/update-manager/"
app = SoftwareProperties.SoftwareProperties(data_dir, options)
app.run()
+ sys.exit(app.modified) \ No newline at end of file