[Problem]
'find' will be traversing the directory tree in the order
items are stored within the directory entries.
However, some file systems will re-order directory entries
as part of compaction operations or when the size of the entry
needs to be expanded
[Solution]
Feed the output through an extra sorting stage.
Change-Id: Ic121bf3f9680415506e5f7f6739382b7d83a5411
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
Group: Security/Development
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
+BuildRequires: coreutils
+BuildRequires: findutils
BuildRequires: xmlsec1
BuildRequires: libtzplatform-config-devel
Requires: xmlstarlet
exception="-not -name author-signature.xml"
fi
- echo $(find . \( -type f -o -type l \) $exception -not -name 'signature*.xml' | sed -e 's,^\.\/,,' | sed -f /usr/bin/url-encode.sed)
+ echo $(find . \( -type f -o -type l \) $exception -not -name 'signature*.xml' | sed -e 's,^\.\/,,' | sed -f /usr/bin/url-encode.sed | sort)
}
. $(dirname $0)/realpath.sh