[SCM] morituri/master: * morituri/rip/image.py: Use getRealPath when retagging an image, fixes bug where it doesn't find the files relative to the cuepath.

js at users.alioth.debian.org js at users.alioth.debian.org
Sun Oct 19 20:09:49 UTC 2014


The following commit has been merged in the master branch:
commit c261be455c78d7a5d8ba67fdda2fdc1ae92f83a2
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date:   Thu Dec 6 16:50:51 2012 +0000

    	* morituri/rip/image.py:
    	  Use getRealPath when retagging an image, fixes bug where it
    	  doesn't find the files relative to the cuepath.

diff --git a/ChangeLog b/ChangeLog
index 67efb22..bb57c78 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2012-12-06  Thomas Vander Stichele  <thomas at apestaart dot org>
 
+	* morituri/rip/image.py:
+	  Use getRealPath when retagging an image, fixes bug where it
+	  doesn't find the files relative to the cuepath.
+
+2012-12-06  Thomas Vander Stichele  <thomas at apestaart dot org>
+
 	* morituri/common/program.py:
 	* morituri/rip/cd.py:
 	* morituri/rip/image.py:
diff --git a/morituri/rip/image.py b/morituri/rip/image.py
index 20d4507..681ed6b 100644
--- a/morituri/rip/image.py
+++ b/morituri/rip/image.py
@@ -124,10 +124,12 @@ class Retag(logcommand.LogCommand):
             prog.cuePath = arg
             prog.result = result.RipResult()
             for track in cueImage.table.tracks:
-                path = track.indexes[1].path
+                path = cueImage.getRealPath(track.indexes[1].path)
+
                 taglist = prog.getTagList(track.number)
-                self.debug('possibly retagging %r with taglist %r',
-                    path, taglist)
+                self.debug(
+                    'possibly retagging %r from cue path %r with taglist %r',
+                    path, arg, taglist)
                 t = encode.SafeRetagTask(path, taglist)
                 runner.run(t)
                 path = os.path.basename(path)

-- 
morituri packaging



More information about the pkg-multimedia-commits mailing list