mirror of
https://github.com/robmcmullen/atrcopy.git
synced 2024-12-29 06:29:22 +00:00
Skip the disk image summary print on crc command
This commit is contained in:
parent
5aa6bffeb8
commit
0b62f6a59b
@ -66,7 +66,6 @@ def find_diskimage(filename):
|
|||||||
continue
|
continue
|
||||||
if options.verbose:
|
if options.verbose:
|
||||||
print "Found parser %s" % parser.menu_name
|
print "Found parser %s" % parser.menu_name
|
||||||
print "%s: %s" % (filename, parser.image)
|
|
||||||
break
|
break
|
||||||
if parser is None:
|
if parser is None:
|
||||||
print "%s: Unknown disk image type" % filename
|
print "%s: Unknown disk image type" % filename
|
||||||
@ -352,6 +351,9 @@ def run():
|
|||||||
"segments": [],
|
"segments": [],
|
||||||
}
|
}
|
||||||
reverse_aliases = {z: k for k, v in command_aliases.iteritems() for z in v}
|
reverse_aliases = {z: k for k, v in command_aliases.iteritems() for z in v}
|
||||||
|
|
||||||
|
skip_diskimage_summary = set(["crc"])
|
||||||
|
|
||||||
usage = "%(prog)s [-h] [-v] [--dry-run] DISK_IMAGE [...]"
|
usage = "%(prog)s [-h] [-v] [--dry-run] DISK_IMAGE [...]"
|
||||||
subparser_usage = "%(prog)s [-h] [-v] [--dry-run] DISK_IMAGE"
|
subparser_usage = "%(prog)s [-h] [-v] [--dry-run] DISK_IMAGE"
|
||||||
|
|
||||||
@ -483,6 +485,8 @@ def run():
|
|||||||
else:
|
else:
|
||||||
parser = find_diskimage(disk_image_name)
|
parser = find_diskimage(disk_image_name)
|
||||||
if parser and parser.image:
|
if parser and parser.image:
|
||||||
|
if command not in skip_diskimage_summary:
|
||||||
|
print "%s: %s" % (disk_image_name, parser.image)
|
||||||
if command == "vtoc":
|
if command == "vtoc":
|
||||||
vtoc = parser.image.get_vtoc_object()
|
vtoc = parser.image.get_vtoc_object()
|
||||||
print vtoc
|
print vtoc
|
||||||
|
Loading…
Reference in New Issue
Block a user