From a7e56598d61327b20c40fe5fb005bdd386b8ea9a Mon Sep 17 00:00:00 2001 From: linsui <2873532-linsui@users.noreply.gitlab.com> Date: Fri, 7 Feb 2025 22:16:18 +0800 Subject: [PATCH] checkupdates: sort the order of dirs when finding autoname --- fdroidserver/checkupdates.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fdroidserver/checkupdates.py b/fdroidserver/checkupdates.py index bd97135d..9731c510 100644 --- a/fdroidserver/checkupdates.py +++ b/fdroidserver/checkupdates.py @@ -381,7 +381,8 @@ def dirs_with_manifest(startdir: str): A directory that contains a manifest file of an Android project, None if no directory could be found """ - for root, _dirs, files in os.walk(startdir): + for root, dirs, files in os.walk(startdir): + dirs.sort() if any(m in files for m in [ 'AndroidManifest.xml', 'pom.xml', 'build.gradle', 'build.gradle.kts']): yield Path(root)