❦ 23 octobre 2017 14:53 +0100, James Page <james.p...@ubuntu.com> :
> This seems like a nice feature to have in python-netaddr, however it > probably needs some careful consideration to have netaddr optionally > load an index from /var/lib/ieee-data/* if /usr/bin/update-ieee-data > is enabled on a deployment > > -- > > *** /tmp/forwarded-from-ubuntu-m3ZA61.txt > This bug report was also filed in Ubuntu and can be found at > http://launchpad.net/bugs/1717752 > The description, from zebul666, follows: > > netaddr python package uses 2 files oui.txt and iab.txt to make mac address > look up and others. > > However, the files > > /usr/lib/python2.7/dist-packages/netaddr/eui/iab.txt > /usr/lib/python2.7/dist-packages/netaddr/eui/oui.txt > > are symlinks to, respectively, > /usr/share/ieee-data/iab.txt > /usr/share/ieee-data/oui.txt > > from the package ieee-data. > > But if you update the files with update-ieee-data, the updated files > lies in /var/lib/ieee-data and not in /usr/share/ieee-data > > So the python package will continue to use the old ones. > > The fix is simple. Use symlink towards > /var/lib/ieee-data/iab.txt > /var/lib/ieee-data/oui.txt > respectively instead ieee-data seems to like changing stuff around. This will only be the third times files/symlinks have moved around. I am fixing that shortly. -- Write clearly - don't sacrifice clarity for "efficiency". - The Elements of Programming Style (Kernighan & Plauger)
signature.asc
Description: PGP signature