From 3c9c54f38fc8e4de7eccbb477019df261a076de5 Mon Sep 17 00:00:00 2001 From: Paul Spooren Date: Thu, 31 Mar 2022 22:51:29 +0100 Subject: [PATCH] scripts: make sure conffiles are sorted It may happen that conffiles are in different order on different builds. Make sure they have the same order by sorting them. FIX: #9612 Signed-off-by: Paul Spooren --- scripts/ipkg-build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/ipkg-build b/scripts/ipkg-build index c112270a2b..89f8d38bc1 100755 --- a/scripts/ipkg-build +++ b/scripts/ipkg-build @@ -58,7 +58,8 @@ pkg_appears_sane() { rm "$CONTROL"/conffiles if [ -f "$CONTROL"/conffiles.resolved ]; then - mv "$CONTROL"/conffiles.resolved "$CONTROL"/conffiles + sort -o "$CONTROL"/conffiles "$CONTROL"/conffiles.resolved + rm "$CONTROL"/conffiles.resolved chmod 0644 "$CONTROL"/conffiles fi fi -- 2.30.2