[packages/rpm-build-tools] pearize: fix cp -b unicode not recognized
glen
glen at pld-linux.org
Tue Aug 28 22:29:27 CEST 2012
commit c40b513766b4da6e6331cf85aa2380b8c81d7e61
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Aug 28 23:29:24 2012 +0300
pearize: fix cp -b unicode not recognized
pearize.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/pearize.sh b/pearize.sh
index 0e2ea5c..55363d6 100755
--- a/pearize.sh
+++ b/pearize.sh
@@ -104,7 +104,7 @@ preamble=$(mktemp "${TMPDIR:-/tmp}/fragXXXXXX")
sed -ne '/^Name:/,/^BuildRoot/p' $spec > $preamble
# create backup
-bak=$(cp -fbv $spec $spec | awk '{print $NF}' | tr -d "['\`]" )
+bak=$(LC_ALL=C cp -fbv $spec $spec | awk '{print $NF}' | tr -d "['\`]" )
# ensure rpm-build-macros is present
if ! grep -q "^BuildRequires:.*rpmbuild(macros)" $preamble; then
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/c40b513766b4da6e6331cf85aa2380b8c81d7e61
More information about the pld-cvs-commit
mailing list