diff -u specto-0.2.2/debian/control specto-0.2.2/debian/control --- specto-0.2.2/debian/control +++ specto-0.2.2/debian/control @@ -9,7 +9,7 @@ Package: specto Architecture: all -Depends: ${python:Depends}, python-gtk2, python-glade2, python-gnome2, python-gnome2-extras, zenity, gconf2, python-notify, python-dbus, librsvg2-common, gnome-icon-theme +Depends: ${python:Depends}, python-gtk2, python-glade2, python-gnome2, python-gnome2-extras, zenity, gconf2, python-notify, python-dbus, librsvg2-common, gnome-icon-theme, python-numpy XB-Python-Version: ${python:Versions} Description: Unobtrusive update notification program Specto is a desktop application that will watch any user-specified events diff -u specto-0.2.2/debian/changelog specto-0.2.2/debian/changelog --- specto-0.2.2/debian/changelog +++ specto-0.2.2/debian/changelog @@ -1,3 +1,10 @@ +specto (0.2.2-3ubuntu1) jaunty; urgency=low + + * Add missing Depends on python-numpy (LP: #354909). + * Add 10_fix_python26_warnings.patch patch to fix deprecation warnings. + + -- Alessio Treglia Wed, 15 Apr 2009 17:58:50 +0200 + specto (0.2.2-3) unstable; urgency=low * debian/control: only in patch2: unchanged: --- specto-0.2.2.orig/debian/patches/10_fix_python26_warnings.patch +++ specto-0.2.2/debian/patches/10_fix_python26_warnings.patch @@ -0,0 +1,60 @@ +diff -Nur -x '*.orig' -x '*~' specto-0.2.2/spectlib/iniparser.py specto-0.2.2.new/spectlib/iniparser.py +--- specto-0.2.2/spectlib/iniparser.py 2006-12-17 04:53:01.000000000 +0100 ++++ specto-0.2.2.new/spectlib/iniparser.py 2009-04-20 01:09:06.000000000 +0200 +@@ -301,7 +301,6 @@ + # Backward-compatiable with ConfigParser + + import re +-from sets import Set + from ConfigParser import DEFAULTSECT, ParsingError, MissingSectionHeaderError + + class line_type(object): +@@ -574,7 +573,7 @@ + del self._options[key] + + def __iter__(self): +- d = Set() ++ d = set() + for l in self._lines: + for x in l.contents: + if isinstance(x, line_container): +@@ -635,7 +634,7 @@ + del self._sections[key] + + def __iter__(self): +- d = Set() ++ d = set() + for x in self._data.contents: + if isinstance(x, line_container): + if x.name not in d: +diff -Nur -x '*.orig' -x '*~' specto-0.2.2/spectlib/watch_web_static.py specto-0.2.2.new/spectlib/watch_web_static.py +--- specto-0.2.2/spectlib/watch_web_static.py 2007-07-17 03:42:34.000000000 +0200 ++++ specto-0.2.2.new/spectlib/watch_web_static.py 2009-04-20 01:06:15.000000000 +0200 +@@ -24,7 +24,8 @@ + from spectlib.watch import Watch + + import StringIO, gzip +-import os, md5, urllib2 ++import os, urllib2 ++from hashlib import md5 + from httplib import HTTPMessage, BadStatusLine + from math import fabs + from re import compile #this is the regex compile module to parse some stuff such as tags in feeds +@@ -101,7 +102,7 @@ + self.specto.logger.log(_("Updating watch: \"%s\"") % self.name, "info", self.__class__) + + # Create a unique name for each url. +- digest = md5.new(self.url_).digest() ++ digest = md5(self.url_).digest() + cacheFileName = "".join(["%02x" % (ord(c),) for c in digest]) + self.cacheFullPath_ = os.path.join(cacheSubDir__, cacheFileName) + request = urllib2.Request(self.url_, None, {"Accept-encoding" : "gzip"}) +@@ -124,7 +125,7 @@ + self.url2_ = response.geturl() + self.content_ = self._writeContent(response) + self.info_['Url'] = self.url_ +- self.digest_ = md5.new(self.content_).digest() ++ self.digest_ = md5(self.content_).digest() + self.digest_ = "".join(["%02x" % (ord(c),) for c in self.digest_]) + self.info_['md5sum'] = self.digest_ +