summaryrefslogtreecommitdiff
path: root/importpkg.py
diff options
context:
space:
mode:
Diffstat (limited to 'importpkg.py')
-rwxr-xr-ximportpkg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/importpkg.py b/importpkg.py
index 06d9da4..7e074e1 100755
--- a/importpkg.py
+++ b/importpkg.py
@@ -68,7 +68,7 @@ def process_package(filelike, hash_functions):
state = "control"
tf = decompress_tar(af, name[11:])
for elem in tf:
- if elem.name != "./control":
+ if elem.name not in ("./control", "control"):
continue
if state != "control":
raise ValueError("duplicate control file")