From b4816b79b3ce90fdabed8e812fc8e6f7109d1de0 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Tue, 21 Dec 2010 18:17:21 +0100 Subject: * apt/debfile.py, tests/test_debfile.py: - strip "./" from _get_content and add tests, this fixes a control file extraction bug in gdebi --- apt/debfile.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apt') diff --git a/apt/debfile.py b/apt/debfile.py index 0a740c63..996a4cb3 100644 --- a/apt/debfile.py +++ b/apt/debfile.py @@ -531,6 +531,8 @@ class DebPackage(object): return s def _get_content(self, part, name, auto_decompress=True, auto_hex=True): + if name.startswith("./"): + name = name[2:] data = part.extractdata(name) # check for zip content if name.endswith(".gz") and auto_decompress: -- cgit v1.2.3