[Bug 412114] [NEW] graphics module: pdf_t prefix attached twice
Michael Schnupp
micha-x at gmx.de
Tue Aug 11 19:21:15 UTC 2009
Public bug reported:
Binary package hint: rubber
If latex source contains "\input{image.pdf_t}" rubber uses fig2dev to create the required .pdf_t file from a .xfig file.
In the created .pdf_t file it writes the *absolute* path of the (also) created .pdf file of the image.
If I run rubber again it tries to check if the created .pdf file is
still up-to-date. At this step it fails to locate the file.
In function includegraphics of graphics.py it calls:
d = self.env.convert(name, suffixes=suffixes, prefixes=self.prefixes, check=check, pos=dict["pos"])
to find the file. But name already includes the *absolute* path to the file and prefix is missing an empty string. Therefore it attaches the path a second time, and hence has no chance to find that file.
My solution is to add an empty sting to the list of prefixes: self.prefixes=[""]+self.prefixes
This fixes the problem. But I am not sure if this is the right place to fix it.
-------------------------------
My system:
$ lsb_release -rd
Description: Ubuntu 9.04
Release: 9.04
$ apt-cache policy rubber
rubber:
Installiert: 1.1-2.2
Kandidat: 1.1-2.2
** Affects: rubber (Ubuntu)
Importance: Undecided
Status: New
--
graphics module: pdf_t prefix attached twice
https://bugs.launchpad.net/bugs/412114
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list