From 081f7746545d497cfe128313ebb20d0ce59dcc8b601b70f6c43065f8c0d97a0f Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 3 Jun 2014 15:21:35 +0000 Subject: [PATCH] Accepting request 236145 from home:scarabeus_iv - Ensure we escape the find %f properly. OBS-URL: https://build.opensuse.org/request/show/236145 OBS-URL: https://build.opensuse.org/package/show/X11:common:Factory/icu?expand=0&rev=47 --- icu.changes | 5 +++++ icu.spec | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/icu.changes b/icu.changes index 20d6032..771b24e 100644 --- a/icu.changes +++ b/icu.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 3 13:23:12 UTC 2014 - tchvatal@suse.com + +- Ensure we escape the find %f properly. + ------------------------------------------------------------------- Tue Jun 3 11:35:25 UTC 2014 - tchvatal@suse.com diff --git a/icu.spec b/icu.spec index 542a3aa..70c02a8 100644 --- a/icu.spec +++ b/icu.spec @@ -186,7 +186,7 @@ ICU_DATA="%buildroot/%_datadir/icu/%version" make check %{?_smp_mflags} VERBOSE= # This should be run by whatever owns /usr/lib64/icu - # the (main) package in this case if test -d "%_libdir/icu"; then - current=$(cd "%_libdir/icu/"; find [0-9]* -maxdepth 1 -type d -printf '%f\n' | + current=$(cd "%_libdir/icu/"; find [0-9]* -maxdepth 1 -type d -printf '%%f\n' | sort -V | tail -n1); if test -n "$current"; then rm -f "%_libdir/icu/current"; @@ -196,7 +196,7 @@ fi; %postun if test -d "%_libdir/icu"; then - current=$(cd "%_libdir/icu/"; find [0-9]* -maxdepth 1 -type d -printf '%f\n' | + current=$(cd "%_libdir/icu/"; find [0-9]* -maxdepth 1 -type d -printf '%%f\n' | sort -V | tail -n1); if test -n "$current"; then rm -f "%_libdir/icu/current";