Control: tag -1 + patch pending On Sat, 10 Oct 2015 06:59:03 +0200 Johannes Schauer <jo...@debian.org> wrote: > when calling `sbuild` through `dgit sbuild` from within an unpacked source > package, the %SBUILD_DSC escape does not contain the absolute path to the > .dsc (as written in the man page) but a path without the directory component.
the following patch fixes the problem: diff --git a/bin/sbuild b/bin/sbuild index ff5fc71..fe40e2f 100755 --- a/bin/sbuild +++ b/bin/sbuild @@ -84,6 +84,10 @@ sub main () { my $jobname = $ARGV[0]; my $source_dir = 0; + if (-e $jobname) { + $jobname = abs_path($jobname); + } + if (-d $jobname) { $jobname = create_source_package($jobname); if ($jobname eq '.') { @@ -166,7 +170,6 @@ sub main () { sub create_source_package ($) { my $dsc = shift; - $dsc = abs_path($dsc); open(my $pipe, '-|', 'dpkg-parsechangelog', '-l' . $dsc . '/debian/changelog')
signature.asc
Description: signature