Remove unnecessary filename check for archive repacking.

This commit is contained in:
Bastian Kleineidam 2012-05-12 12:57:17 +02:00
parent d7c7b6fcc6
commit e4f1a06c82
1 changed files with 0 additions and 3 deletions

View File

@ -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: