]> git.pld-linux.org Git - projects/pld-builder.new.git/commitdiff
- do not parse escapes with -c
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 19 Jan 2010 15:31:10 +0000 (15:31 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    client/make-request.sh -> 1.63

client/make-request.sh

index 051e775c515407112b95e9af00a1e0a0a1222544..13dd189a0ed72fc34a672a9dc79dfb846053b39e 100644 (file)
@@ -63,11 +63,12 @@ import sys, urllib2
 
 try:
         data = sys.stdin.read()
-        req = urllib2.Request(sys.argv[1], data)
+        url = sys.argv[1]
+        req = urllib2.Request(url, data)
         f = urllib2.urlopen(req, timeout = 10)
         f.close()
 except Exception, e:
-        print >> sys.stderr, "Problem while sending request via HTTP: %s" % e
+        print >> sys.stderr, "Problem while sending request via HTTP: %s: %s" % (url, e)
         sys.exit(1)
 print >> sys.stdout, "Request queued via HTTP."
 ' "$url"
@@ -382,9 +383,9 @@ gen_req() {
 
        if [ "$command" != "" ] ; then
                bid=$(uuidgen)
-               echo >&2 "* Command: $command"
+               echo -E >&2 "* Command: $command"
                echo "  <batch id='$bid' depends-on=''>"
-               echo "           <command flags='$command_flags'>$(echo "$command" | sed -e 's,&,\&amp;,g;s,<,\&lt;,g;s,>,\&gt;,g')</command>"
+               echo "           <command flags='$command_flags'>$(echo -E "$command" | sed -e 's,&,\&amp;,g;s,<,\&lt;,g;s,>,\&gt;,g')</command>"
                echo "           <info></info>"
                for b in $builders; do
                        echo >&2 "* Builder: $b"
This page took 0.128906 seconds and 4 git commands to generate.