[Bond-users] PAPYRUS GIT IS BROKEN

Colin Close itchka at compuserve.com
Sun Dec 11 14:22:32 EST 2011


Hi All,
This is just a heads up to say that the current git version is broken and will 
not generate reports (at least not for me). 
I have my database on a separate machine to the bobd system it is thus 
interrogated over a local network (no dns just ip addresses).
The file that is broken is the papyrus script  it is broken by this seemingly 
innocuous commit.
dde9c788ec0a1743960c2c69537d1243aa8de2de

index f295caf..3b1497d 100755
@@ -279,7 +279,7 @@ while [ "$#" -gt "0" ] ; do
 	"-dn"|"--database-name") dbname="-n$2" ; shift;;
 	"-dt"|"--database-type") dbtype="-t$2" ; shift;;
 	"-ds"|"--database-schema") dbschema="-s$2" ; shift;;
-	"-dc"|"--database-connection-string") dbconn="-c$2" ; shift;;
+	"-dc"|"--database-connection-string") dbconn=( -c "$2" ) ; shift;;
 	"-dp"|"--database-provider") dbprovider="-p $2" ; shift;;
 	*)
 	if [ -n "$input" ] ; then
@@ -343,15 +343,15 @@ say -n "Running backend $input..."
 (
 IFS=\\
 echo
-exdirect "$workdir/output.xml" $backend $validate $dbname $dbtype $dbconn 
$dbschema $dbprovider ${args[*]} "$input" 
+exdirect "$workdir/output.xml" $backend $validate $dbname $dbtype 
"${dbconn[@]}" $dbschema $dbprovider "${args[@]}" "$input" 
 )
 
 else
  say -n "Running remote backend "
  if ! [ "$dryrun" ]
- then ssh $remote papyrus_backend $validate $dbname $dbtype $dbconn $dbschema 
$dbprovider  ${args[*]} -  < "$input" > "$workdir/output.xml"
+ then ssh $remote papyrus_backend $validate $dbname $dbtype "${dbconn[@]}" 
$dbschema $dbprovider  "${args[@]}" -  < "$input" > "$workdir/output.xml"
  fail $? "remote papyrus backend failed!"
- else echo ssh $remote papyrus_backend $validate $dbname $dbtype $dbconn 
$dbschema $dbprovider ${args[*]} - \< \"$input\" \> \"$workdir/output.xml\"
+ else echo ssh $remote papyrus_backend $validate $dbname $dbtype 
"${dbconn[@]}" $dbschema $dbprovider "${args[@]}" - \< \"$input\" \> 
\"$workdir/output.xml\"
  fi 
 fi

Led me a merry dance I can tell you!
Best,
Colin Close 



More information about the Bond-users mailing list