graphics module: pdf_t prefix attached twice

Bug #412114 reported by Michael Schnupp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rubber
Fix Released
Undecided
Unassigned
rubber (Ubuntu)
New
Undecided
Unassigned

Bug Description

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

Revision history for this message
Emmanuel Beffara (manu-beffara) wrote :

Hi,

I think the current version in the trunk fixes this issue. Could you check this?

Emmanuel

Changed in rubber:
status: New → Fix Committed
Revision history for this message
Michael Schnupp (michas) wrote :

Where do I find the current version?
Package describes Homepage as http://www.pps.jussieu.fr/~beffara/soft/rubber/
But everything there seems to be about 4 years old...

Revision history for this message
Alex Valavanis (valavanisalex) wrote :

@Michael,

The latest official release (Rubber 1.2) is indeed several years old, but you can get the very latest development code from Launchpad:

bzr checkout http://bazaar.launchpad.net/~rubber-devs/rubber/main

Sebastian Kapfer (caci)
Changed in rubber:
milestone: none → 1.2
Sebastian Kapfer (caci)
Changed in rubber:
milestone: 1.2 → none
status: Fix Committed → Fix Released
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.