From 2a728ab85e1ddfeec03514f86f706c116ca94440 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Wed, 23 Jul 2014 18:07:39 +0200 Subject: 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". --- importpkg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- cgit v1.2.3