summaryrefslogtreecommitdiff
path: root/apt
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-12-21 18:17:21 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2010-12-21 18:17:21 +0100
commitb4816b79b3ce90fdabed8e812fc8e6f7109d1de0 (patch)
tree01d97646f42519659e8fb831167db2c2865e8030 /apt
parentbebae32a598593f9d427d54cb48a84bd9beac227 (diff)
downloadpython-apt-b4816b79b3ce90fdabed8e812fc8e6f7109d1de0.tar.gz
* apt/debfile.py, tests/test_debfile.py:
- strip "./" from _get_content and add tests, this fixes a control file extraction bug in gdebi
Diffstat (limited to 'apt')
-rw-r--r--apt/debfile.py2
1 files changed, 2 insertions, 0 deletions
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: