[projects/pld-builder.new] Fix behaviour for packagename/ with trailing '/' in argument list
draenog
draenog at pld-linux.org
Sat Aug 11 04:43:09 CEST 2012
commit d1ae5775109582b9ca738c34af8e57d4eee6bbb6
Author: Kacper Kornet <draenog at pld-linux.org>
Date: Tue Aug 7 15:40:18 2012 +0100
Fix behaviour for packagename/ with trailing '/' in argument list
In some shells autocompletion easily results in sending packagedir with
trailing '/' in argument list. Previously such arguments has been
treated correctly, however it has been broken by
e4d71c863233848f975695cf52a4b35a9b0f5731 "Rewrite parser of spec:branch
syntax".
client/make-request.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/client/make-request.sh b/client/make-request.sh
index c9e4b0c..0a3bc60 100755
--- a/client/make-request.sh
+++ b/client/make-request.sh
@@ -595,7 +595,7 @@ specs=`for s in $specs; do
echo ${_specfile%.spec}.spec:${s##*:}
;;
*) # just package name
- echo $(basename ${s%.spec}.spec):$branch
+ echo $(basename ${s%.spec}).spec:$branch
;;
esac
done`
More information about the pld-cvs-commit
mailing list