Package: dict-gazetteer2k Version: 1.0.0-3 Severity: serious Tags: patch dict-gazetteer2k fails to build because it cannot access /usr/share/misc/postal.codes.gz:
> python2.3 zipswriter.py
> Loading states.
> Traceback (most recent call last):
> File "zipswriter.py", line 2, in ?
> from states import statedict
> File "/tmp/buildd/dict-gazetteer2k-1.0.0/states.py", line 5, in ?
> fh = GzipFile("/usr/share/misc/postal.codes.gz", "rb")
> File "/usr/lib/python2.3/gzip.py", line 94, in __init__
> fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
> IOError: [Errno 2] No such file or directory:
> '/usr/share/misc/postal.codes.gz'
This file appears to have moved to
/usr/share/doc/miscfiles/na.postalcodes.gz. The attached patch makes
states.py use its new location.
--
Matt
diff -u dict-gazetteer2k-1.0.0/states.py dict-gazetteer2k-1.0.0/states.py
--- dict-gazetteer2k-1.0.0/states.py
+++ dict-gazetteer2k-1.0.0/states.py
@@ -2,7 +2,7 @@
statedict = {}
-fh = GzipFile("/usr/share/misc/postal.codes.gz", "rb")
+fh = GzipFile("/usr/share/doc/miscfiles/na.postalcodes.gz", "rb")
for line in fh.readlines():
if line[0] == '#':
signature.asc
Description: Digital signature

