Bug#439023: python-apt: apt_inst.debExtractArchive doesn't handle links.
reassign 439023 apt
thanks
On Tue, Aug 21, 2007 at 05:56:39PM +0000, Bill Broadley wrote:
> Package: python-apt
> Version: 0.6.19
> Severity: important
>
>
> apt_inst.debExtractArchive produces directories instead of links.
>
> To reproduce:
> >>> import apt_inst
> >>> apt_inst.debExtractArchive(open("/var/cache/apt/archives/sudo_1.6.8p12-1ubuntu6_amd64.deb"),"/tmp")
>
> What should happen:
> ar x /tmp/sudo_1.6.8p12-4ubuntu5_amd64.deb
> tar tvzf data.tar.gz | grep "usr/bin/sudo"
> hrwsr-xr-x root/root 0 2006-10-09 04:39 ./usr/bin/sudo link to ./usr/bin/sudoedit
>
> What actually happens:
> etch:/tmp/usr/bin# ls -al
> total 124
> drwxr-xr-x 3 root root 4096 Aug 21 17:40 .
> drwxr-xr-x 5 root root 4096 Aug 21 17:40 ..
> -rwxr-xr-x 1 root root 110280 May 17 2006 sudo
> drwxr-xr-x 2 root root 4096 Aug 21 17:40 sudoedit
>
> -- System Information:
> Debian Release: 4.0
> APT prefers stable
> APT policy: (500, 'stable')
> Architecture: amd64 (x86_64)
> Shell: /bin/sh linked to /bin/bash
> Kernel: Linux 2.6.16.33-xen
> Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
>
> Versions of packages python-apt depends on:
> ii apt [libapt-pkg-libc6. 0.6.46.4-0.1 Advanced front-end for dpkg
> ii apt-utils [libapt-inst 0.6.46.4-0.1 APT utility programs
> ii libc6 2.3.6.ds1-13etch2 GNU C Library: Shared libraries
> ii libgcc1 1:4.1.1-21 GCC support library
> ii libstdc++6 4.1.1-21 The GNU Standard C++ Library v3
> ii python 2.4.4-2 An interactive high-level object-o
> ii python-central 0.5.12 register and build utility for Pyt
>
> python-apt recommends no packages.
>
> -- no debconf information
>
>
This seems to be a bug in apt. The apt_inst module basically just calls
Deb.ExtractArchive(Extract), so the reason is very unlikely to be python-apt.
--
Julian Andres Klode - Free Software Developer
Debian Developer - Contributing Member of SPI
Ubuntu Member - Fellow of FSFE
Website: http://jak-linux.org/ XMPP: juliank@jabber.org
Debian: http://www.debian.org/ SPI: http://www.spi-inc.org/
Ubuntu: http://www.ubuntu.com/ FSFE: http://www.fsfe.org/
Reply to: