summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-02-22 11:46:16 +0000
committerPanu Matilainen <pmatilai@redhat.com>2012-03-07 09:03:32 +0200
commit778442263e3d0bcc79f209b7bd49f5937ade28a5 (patch)
tree7364d99920873ba41d89deaf92a9dd795108fbaf
parent959dedc5ae6ae493365565eb4029dea2a34be047 (diff)
downloadlibrpm-tizen-778442263e3d0bcc79f209b7bd49f5937ade28a5.tar.gz
librpm-tizen-778442263e3d0bcc79f209b7bd49f5937ade28a5.tar.bz2
librpm-tizen-778442263e3d0bcc79f209b7bd49f5937ade28a5.zip
Correctly quote tr [:blank:] in OCaml dependency scripts.
This fixes: https://bugzilla.redhat.com/show_bug.cgi?id=796149 Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
-rw-r--r--scripts/ocaml-find-provides.sh2
-rw-r--r--scripts/ocaml-find-requires.sh4
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/ocaml-find-provides.sh b/scripts/ocaml-find-provides.sh
index a4441cbc9..985709e87 100644
--- a/scripts/ocaml-find-provides.sh
+++ b/scripts/ocaml-find-provides.sh
@@ -32,7 +32,7 @@ done
files=`sed "s/['\"]/\\\&/g"`
# Get list of .cmi, .cmo and .cma files.
-files=`echo $files | tr [:blank:] '\n' | grep '\.cm[ioa]$'`
+files=`echo $files | tr '[:blank:]' '\n' | grep '\.cm[ioa]$'`
if [ -z "$files" ]; then exit 0; fi
diff --git a/scripts/ocaml-find-requires.sh b/scripts/ocaml-find-requires.sh
index bee3478d0..e10e6277a 100644
--- a/scripts/ocaml-find-requires.sh
+++ b/scripts/ocaml-find-requires.sh
@@ -34,10 +34,10 @@ done
files=`sed "s/['\"]/\\\&/g"`
# Use ordinary find-requires first.
-# echo $files | tr [:blank:] '\n' | /usr/lib/rpm/find-requires
+# echo $files | tr '[:blank:]' '\n' | /usr/lib/rpm/find-requires
# Get list of .cmi, .cmo and .cma files.
-files=`echo $files | tr [:blank:] '\n' | grep '\.cm[ioa]$'`
+files=`echo $files | tr '[:blank:]' '\n' | grep '\.cm[ioa]$'`
if [ -z "$files" ]; then exit 0; fi