Package: debdelta Version: 0.44 Severity: normal Tags: patch Hi,
currently debdelta 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
diff --git a/debdelta/debdelta b/debdelta/debdelta index 36e2d02..a0af15c 100755 --- a/debdelta/debdelta +++ b/debdelta/debdelta @@ -3809,7 +3809,8 @@ def delta_upgrade_(args): # synopsis lockf( fd, operation, [length, [start, [whence]]]) fcntl.lockf(a, fcntl.LOCK_EX | fcntl.LOCK_NB, 0,0,0) except IOError, s: - if s.errno == 11 : + from errno import EAGAIN + if s.errno == EAGAIN : a=' already locked!' else: a=str(s)