Public bug reported:

Binary package hint: python-central

Sometime between versions 0.5.12 (Debian etch) and 0.6.7ubuntu0.1 (hardy), 
python-central was changed
to store a package manifest in /usr/share/pyshared-data/ and to use the 
information in that file to create
the necessary symlinks at pkginstall time. The file is parsed using the 
ConfigParser that ships with Python.
The regular expression used by this parser to split <key>=<value> lines can't 
handle = signs in <key>:
the first such sign is taken as the separator.

I have privately packaged PyRAF 
(http://www.stsci.edu/resources/software_hardware/pyraf), which installs data
files in /usr/lib/python<version>/site-packages/pyraf/clcache/. These files are 
named after the MD5 sums of
their contents, Base64-encoded, complete with the trailing ==. When pycentral 
pkginstall reads the
corresponding entries in the [files] section of 
/usr/share/pyshared-data/python-pyraf, it strips the trailing ==
and creates the wrong symlinks as a result. (I can confirm that 
/usr/share/pyshared-data/python-pyraf
contains all the = signs: each of the lines in question ends in ===f .)

My workaround for this problem was to move the directory with the offending 
data files to /usr/lib/python-pyraf/
where they will no longer be handled by python-central. This seemed easier than 
patching pycentral to handle the = signs correctly in the general case. (Can 
one be sure that <value> will never contain an
equals sign?) Still, this limitation on the filenames python-central can handle 
is at least worth documenting.

** Affects: python-central (Ubuntu)
     Importance: Undecided
         Status: New

-- 
pycentral can't handle filenames containing = signs
https://bugs.launchpad.net/bugs/279524
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to