tag 405437 patch
tag 406811 patch
tag 408696 patch
tag 409309 patch
thanks

Hi,

I attached a patch for this issue. I merged it in the 0.6.16.1 branche:
http://svn.debian.org/wsvn/collab-maint/deb-maint/svn-buildpackage/branches/0.6.16.1/debian/?rev=0&sc=0

Best regards,

               Gonéri
diff -ru tags/0.6.16/svn-buildpackage branches/0.6.16.1/svn-buildpackage
--- tags/0.6.16/svn-buildpackage	2007-03-08 22:32:53.000000000 +0100
+++ branches/0.6.16.1/svn-buildpackage	2007-03-08 22:32:53.000000000 +0100
@@ -180,10 +180,14 @@
 #some things may have been overriden by user options
 &setallenv;
 
-if($opt_buildcmd || $opt_export) {
+$opt_buildcmd=~ s/('|")/\\$1/g; # See Bug: #376278
+if($opt_buildcmd =~ /;|\||&/|| $opt_export) { # Seems to have more than one command to run. I don't pass @ARGV 
     @builder = ("/bin/sh", "-c", $opt_buildcmd);
     undef @ARGV;
 }
+elsif($opt_buildcmd || $opt_export){
+    push @builder, $opt_buildcmd;
+}
 else {
    push(@builder, "dpkg-buildpackage");
    # a simple "helper". Only executed if no custom command is choosen and

Attachment: pgpPUPl9aRVq3.pgp
Description: PGP signature

Reply via email to