#439023 python-apt: apt_inst.debExtractArchive doesn't handle links.

Package:
apt
Source:
apt
Description:
commandline package manager
Submitter:
Bill Broadley
Date:
2010-03-26 15:03:02 UTC
Severity:
normal
#439023#5
Date:
2007-08-21 17:56:39 UTC
From:
To:
apt_inst.debExtractArchive produces directories instead of links.

To reproduce:
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

#439023#10
Date:
2009-01-11 19:25:23 UTC
From:
To:
reassign 439023 apt
thanks
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.

#439023#17
Date:
2009-01-16 14:57:24 UTC
From:
To:
package apt
severity 439023 normal
thanks

Hello Bill, thanks for report.

Generally, it's better to use dpkg for operations around .deb files.