summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2014-07-23 18:07:39 +0200
committerHelmut Grohne <helmut@subdivi.de>2014-07-23 18:07:39 +0200
commit2a728ab85e1ddfeec03514f86f706c116ca94440 (patch)
tree20c3b0c9e5cadbb5c0feed6b7fbfbd521153f608
parentd48c3c208ee6ba54225b3eb68ce5c9f3c894bfa4 (diff)
downloaddebian-dedup-2a728ab85e1ddfeec03514f86f706c116ca94440.tar.gz
importpkg: be more liberal in control file naming
While in current sid packages the control file in control.tar is always named "./control", some older packages name it "control".
-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")