[SCM] morituri/master: tell us about each try

js at users.alioth.debian.org js at users.alioth.debian.org
Sun Oct 19 20:10:07 UTC 2014


The following commit has been merged in the master branch:
commit 821dfcf6e22a831453235ad7343206e01ff2814c
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date:   Mon Jul 22 01:54:20 2013 +0200

    tell us about each try

diff --git a/morituri/rip/cd.py b/morituri/rip/cd.py
index a0a29f7..4ed098a 100644
--- a/morituri/rip/cd.py
+++ b/morituri/rip/cd.py
@@ -348,11 +348,14 @@ Install pycdio and run 'rip offset find' to detect your drive's offset.
                 # we reset durations for test and copy here
                 trackResult.testduration = 0.0
                 trackResult.copyduration = 0.0
-                self.stdout.write('Ripping track %d of %d: %s\n' % (
-                    number, len(self.itable.tracks),
-                    os.path.basename(path).encode('utf-8')))
+                extra = ""
                 while tries < MAX_TRIES:
                     tries += 1
+                    if tries > 1:
+                        extra = " (try %d)" % tries
+                    self.stdout.write('Ripping track %d of %d%s: %s\n' % (
+                        number, len(self.itable.tracks), extra,
+                        os.path.basename(path).encode('utf-8')))
                     try:
                         self.debug('ripIfNotRipped: track %d, try %d',
                             number, tries)
@@ -361,8 +364,8 @@ Install pycdio and run 'rip offset find' to detect your drive's offset.
                             device=self.parentCommand.options.device,
                             profile=profile,
                             taglist=self.program.getTagList(number),
-                            what='track %d of %d' % (
-                                number, len(self.itable.tracks)))
+                            what='track %d of %d%s' % (
+                                number, len(self.itable.tracks), extra))
                         break
                     except Exception, e:
                         self.debug('Got exception %r on try %d',

-- 
morituri packaging



More information about the pkg-multimedia-commits mailing list