From e4f1a06c82da82f11ff76bbf47cf12b55ea626e5 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Sat, 12 May 2012 12:57:17 +0200 Subject: [PATCH] Remove unnecessary filename check for archive repacking. --- patoolib/__init__.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/patoolib/__init__.py b/patoolib/__init__.py index 76fe3d7..865e25f 100644 --- a/patoolib/__init__.py +++ b/patoolib/__init__.py @@ -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: