[Buildd-tools-devel] Bug#392323: split mode is broken: sh: line 0: cd: /home/tbm/build: No such file or directory

Michael Banck mbanck at debian.org
Wed Oct 11 22:04:19 UTC 2006


tags 392323 +patch
thanks

On Wed, Oct 11, 2006 at 10:13:20AM +0100, Martin Michlmayr wrote:
> It seems that sbuild with split mode is broken since 0.50.

> /usr/bin/sudo /usr/sbin/chroot /home/tbm/build/chroot-unstable1 /bin/su -p tbm -s /bin/sh -c 'cd /home/tbm/build && /usr/bin/md5sum ./dadadodo_1.04-3.diff.gz ./dadadodo_1.04.orig.tar.gz </dev/null'
> sh: line 0: cd: /home/tbm/build: No such file or directory


This patch fixes it for me:

--- /usr/bin/sbuild     2006-09-29 17:06:29.000000000 +0200
+++ /usr/bin/sbuild.new 2006-10-12 00:02:06.000000000 +0200
@@ -2960,7 +2960,7 @@
        if (scalar keys %$exp_md5 > 0) {

                my @files = keys %$exp_md5;
-               my $command = get_command("cd $main::cwd && $conf::md5sum @files </dev/null", $main::username, 1, 0);
+               my $command = get_command("cd $main::cwd && $conf::md5sum @files </dev/null", $main::username, 0, 0);

                open(OBS, "$command |") or return 1;
                while (<OBS>) {



Michael




More information about the Buildd-tools-devel mailing list