Remove unnecessary filename check for archive repacking.
This commit is contained in:
parent
d7c7b6fcc6
commit
e4f1a06c82
|
@ -412,9 +412,6 @@ def check_archive_arguments (archive, command, *args):
|
|||
if not args:
|
||||
raise util.PatoolError("missing target archive filename for repack")
|
||||
util.check_new_filename(args[0])
|
||||
if util.is_same_filename(archive, args[0]):
|
||||
msg = "cannot repack identical archives `%s' and `%s'"
|
||||
raise util.PatoolError(msg % (archive, args[0]))
|
||||
elif command == 'diff':
|
||||
util.check_existing_filename(archive)
|
||||
if not args:
|
||||
|
|
Loading…
Reference in New Issue