[SCM] morituri/master: Accept more than one file for checksum.
js at users.alioth.debian.org
js at users.alioth.debian.org
Sun Oct 19 20:10:04 UTC 2014
The following commit has been merged in the master branch:
commit 66abdfb21455f4fc7d61eb78bccd108d70314825
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date: Fri May 10 22:06:29 2013 +0200
Accept more than one file for checksum.
diff --git a/morituri/rip/debug.py b/morituri/rip/debug.py
index d8d27d6..96b14e6 100644
--- a/morituri/rip/debug.py
+++ b/morituri/rip/debug.py
@@ -100,21 +100,22 @@ class Checksum(logcommand.LogCommand):
summary = "run a checksum task"
def do(self, args):
- try:
- fromPath = unicode(args[0])
- except IndexError:
- self.stdout.write('Please specify an input file.\n')
+ if not args:
+ self.stdout.write('Please specify one or more input files.\n')
return 3
runner = task.SyncRunner()
-
# here to avoid import gst eating our options
from morituri.common import checksum
- checksumtask = checksum.CRC32Task(fromPath)
- runner.run(checksumtask)
+ for arg in args:
+ fromPath = unicode(args[0])
+
+ checksumtask = checksum.CRC32Task(fromPath)
+
+ runner.run(checksumtask)
- self.stdout.write('Checksum: %08x\n' % checksumtask.checksum)
+ self.stdout.write('Checksum: %08x\n' % checksumtask.checksum)
class Encode(logcommand.LogCommand):
--
morituri packaging
More information about the pkg-multimedia-commits
mailing list