brp-python-hardlink fails on files that include spaces
dmalcolm at redhat.com
Tue Sep 25 20:32:39 UTC 2012
On Tue, 2012-09-25 at 09:39 -0700, Toshio Kuratomi wrote:
> On Tue, Sep 25, 2012 at 01:42:52PM +0200, Tadej Janež wrote:
> > Hello!
> > I've reported this issue with brp-python-hardlink back in January:
> > https://bugzilla.redhat.com/show_bug.cgi?id=783433
> > Could someone (a provenpackager) please look at the patch provided in
> > the bug report and apply it?
> Tangent: Are spaces in directories under site-packages legal? I can't
> figure out a way to import one.
Almost certainly a bad idea, but FWIW it is possible, using the
# mkdir "/usr/lib64/python2.7/site-packages/this module has a space"
# echo "print('hello world')" > "/usr/lib64/python2.7/site-packages/this
module has a space/__init__.py"
# ls /usr/lib64/python2.7/site-packages/this\ module\ has\ a\
/usr/lib64/python2.7/site-packages/this module has a space/__init__.py
# python -c "__import__('this module has a space')"
But yeah, don't do that :)
More information about the devel