summaryrefslogtreecommitdiff
path: root/apt/debfile.py
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2010-12-22 11:11:10 +0100
committerMichael Vogt <mvo@debian.org>2010-12-22 11:11:10 +0100
commitd3d1874886839dabdabeab94ccee7b1fb449c66e (patch)
tree5ad17ad8dc07c02af00a4fc24e34896f7f2442e2 /apt/debfile.py
parent674f6c2e21b8f59a6a23089eb8da5f210f865bc2 (diff)
parent33dd13058d468772153e3182c7d8b126f1e0f6ba (diff)
downloadpython-apt-d3d1874886839dabdabeab94ccee7b1fb449c66e.tar.gz
merged from lp:~mvo/python-apt/mvo
Diffstat (limited to 'apt/debfile.py')
-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: