diff options
| author | Julian Andres Klode <jak@debian.org> | 2010-02-02 17:15:18 +0100 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2010-02-02 17:15:18 +0100 |
| commit | eda5f5556f353c2403f846d74104d000c00aff90 (patch) | |
| tree | 95c09db50b5f5854183ca80d48f69b61b2075d3f /python | |
| parent | a3d3b31c936d7c244e7a3874ae6f453f75d5cf58 (diff) | |
| download | python-apt-eda5f5556f353c2403f846d74104d000c00aff90.tar.gz | |
python/tarfile.cc: If only one member is requested, extract just that one.
Diffstat (limited to 'python')
| -rw-r--r-- | python/tarfile.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/tarfile.cc b/python/tarfile.cc index aa9a39f6..6363af0f 100644 --- a/python/tarfile.cc +++ b/python/tarfile.cc @@ -78,6 +78,8 @@ bool PyDirStream::DoItem(Item &Itm, int &Fd) copy_size = Itm.Size; } Fd = -2; + } else { + Fd = -1; } return true; } |
