Package: apt-src Version: 0.25.1-0.1 Followup-For: Bug #290443 Hi,
Please consider the following patch, which should fix this issue. Thanks, David. diff --git a/AptSrc.pm b/AptSrc.pm index 02d273f..f2a01ad 100644 --- a/AptSrc.pm +++ b/AptSrc.pm @@ -323,22 +323,25 @@ sub install { return @ret; } - my $item=$class->new( - status => 'removed', - basedir => $cwd, - source => $source, - version => $version, - sourcepkgversion => $version, - ); - # Go to the loclimit directory, to install a package there. + my $basedir; if (defined $loclimit && ! $ignoreloclimit) { chdir($loclimit) || $class->error("Cannot chdir to $loclimit"); + $basedir = $loclimit; } else { chdir($dir) || $class->error("Cannot chdir to $dir"); + $basedir = $dir; } + my $item=$class->new( + status => 'removed', + basedir => $basedir, + source => $source, + version => $version, + sourcepkgversion => $version, + ); + # source=version used to get exactly the version the user asked # for. if ($class->do(qw{apt-get source}, "$source=$version") != 0) { diff --git a/apt-src b/apt-src old mode 100755 new mode 100644 -- System Information: Debian Release: 4.0 APT prefers testing APT policy: (500, 'testing'), (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.18-4-vserver-686 (SMP w/1 CPU core) Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1) Shell: /bin/sh linked to /bin/bash Versions of packages apt-src depends on: ii apt 0.7.3 Advanced front-end for dpkg ii dpkg-dev 1.13.25 package building tools for Debian ii libapt-pkg-perl 0.1.21 Perl interface to libapt-pkg ii perl 5.8.8-7 Larry Wall's Practical Extraction Versions of packages apt-src recommends: ii build-essential 11.3 informational list of build-essent ii fakeroot 1.7.1 Gives a fake root environment ii sudo 1.6.8p12-4 Provide limited super user privile -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]