Package: debpartial-mirror Version: 0.2.99 Severity: normal Tags: patch Hi,
currently debpartial-mirror compares 'errno' values with hardcoded numeric values, instead of using the constants of the 'errno' Python module. This can lead to bugs due to E* values being potentially different per-OS, and even per-arch for the same OS. The attached patch fixes the issue. Thanks, -- Pino
--- a/debpartial_mirror/Download.py +++ b/debpartial_mirror/Download.py @@ -25,6 +25,7 @@ from stat import * import pycurl from string import split, join from rfc822 import formatdate +import errno from debpartial_mirror import DisplayStatus @@ -107,7 +108,7 @@ class Curl: try: os.makedirs(os.path.dirname(self._curl.filename)) except OSError, (errno, msg): - if errno != 17: + if errno != errno.EEXIST: print "ERROR:", msg # (uri, destine, callback, error_callback, no_cache) self.Queue.put((

