Skip to content

Commit dc8e1c1

Browse files
authored
Merge pull request #1204 from jocelynj/pyosmium-3.1.3
Handle err=3 from pyosmium-up-to-date as an error
2 parents 86d8872 + 2e26e7e commit dc8e1c1

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

modules/OsmOsisManager.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -424,10 +424,9 @@ def run_osmium_diff(self, conf):
424424
cmd += ["--force-update-of-old-planet"]
425425
cmd += [pbf_file]
426426
# pyosmium-up-to-date returns:
427-
# - 0 on full update
427+
# - 0 on full update, or if pbf is already up-to-date
428428
# - 1 on partial update
429-
# - 3 when no update to be done - TODO: to be removed with pyosmium 3.1.3
430-
ret = self.logger.execute_err(cmd, valid_return_code=(0, 1, 3))
429+
ret = self.logger.execute_err(cmd, valid_return_code=(0, 1))
431430

432431
if ret == 0 or ret == 1:
433432
shutil.move(tmp_pbf_file, pbf_file)

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ requests
88
transporthours
99
pyproj >= 2.1.0
1010
Unidecode
11-
osmium
11+
osmium >= 3.1.3
1212
git+https://invent.kde.org/libraries/kopeninghours.git@74bd4c5
1313
libarchive
1414

0 commit comments

Comments
 (0)