From: Michael Tremer Date: Fri, 12 Aug 2022 15:49:13 +0000 (+0000) Subject: importer: Import all sources in alphabetical order X-Git-Tag: 0.9.14~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3edaa9cf5c19dbe10d27c5462a728f4423d5aa5;p=location%2Flibloc.git importer: Import all sources in alphabetical order To generate deterministic results Signed-off-by: Michael Tremer --- diff --git a/src/scripts/location-importer.in b/src/scripts/location-importer.in index 22c7b35..1785791 100644 --- a/src/scripts/location-importer.in +++ b/src/scripts/location-importer.in @@ -411,7 +411,7 @@ class CLI(object): validcountries = self.countries # Iterate over all potential sources - for source in location.importer.SOURCES: + for source in sorted(location.importer.SOURCES): with self.db.transaction(): # Create some temporary tables to store parsed data self.db.execute("""