From d7a4b8e9e7bf6d122575fe889b32e33507b04131 Mon Sep 17 00:00:00 2001 From: Etienne Trimaille Date: Mon, 21 Dec 2015 17:31:21 +0100 Subject: [PATCH] remove poly file from downloader --- docker-osmupdate/download.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/docker-osmupdate/download.py b/docker-osmupdate/download.py index f37bf55..07087aa 100644 --- a/docker-osmupdate/download.py +++ b/docker-osmupdate/download.py @@ -59,7 +59,6 @@ for folder in folders: # Test files state_file = None osm_file = None -poly_file = None for f in listdir(default['SETTINGS']): if f == 'last.state.txt': state_file = join(default['SETTINGS'], f) @@ -67,9 +66,6 @@ for f in listdir(default['SETTINGS']): if f.endswith('.pbf'): osm_file = join(default['SETTINGS'], f) - if f.endswith('.poly'): - poly_file = join(default['SETTINGS'], f) - """ # Todo : need fix custom URL and sporadic diff : daily, hourly and minutely if f == 'custom_url_diff.txt': @@ -85,11 +81,6 @@ if not osm_file: print >> stderr, 'OSM file *.osm.pbf is missing in %s' % default['SETTINGS'] exit() -if not poly_file: - print 'No *.poly detected in %s' % default['SETTINGS'] -else: - print '%s detected for clipping.' % poly_file - # In docker-compose, we should wait for the DB is ready. print 'The checkup is OK. The container will continue soon, after the database.' sleep(45) @@ -134,8 +125,6 @@ while True: # Command command = ['osmupdate', '-v'] - if poly_file: - command.append('-B=%s' % poly_file) command += ['--max-days=' + default['MAX_DAYS']] command += [default['DIFF']] command += ['--max-merge=' + default['MAX_MERGE']]