Only *.png files are installed from help/C/figures

Bug #1670208 reported by Gunnar Hjalmarsson
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-distutils-extra (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

I tried to add a .svg icon to the help/C/figures folder in the language-selector package, but found that it wasn't installed. The problem was solved by converting it to a .png file, but it seems like the code ought to allow other image formats but .png.

Revision history for this message
Jeremy Bícha (jbicha) wrote :

Gunnar, do you want to try just duplicating line 31 and changing .png to .svg ?

https://anonscm.debian.org/cgit/collab-maint/python-distutils-extra.git/tree/DistUtilsExtra/command/build_help.py

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Yep, that works. So does changing line 31 to:

data_files.append((path_figures, glob('%s/figures/*' % path)))

(Maybe there is some reason to not do that.)

Revision history for this message
Jeremy Bícha (jbicha) wrote :

Gunnar, great. Could you submit a patch against
https://anonscm.debian.org/cgit/collab-maint/python-distutils-extra.git

and ping pitti?

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Hi Martin,

Can you please change line 31 in DistUtilsExtra/command/build_help.py (or add another similar line) as above? I suppose you do it just as easy without a patch.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in python-distutils-extra (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.