fix import diff error when clip is turn on

pull/95/head
meomancer 2020-01-29 12:23:58 +07:00
rodzic e8635da356
commit 6b783caa23
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -271,7 +271,8 @@ class Importer(object):
command += ['-write', '-connection', self.postgis_uri]
self.info('The database is empty. Let\'s import the PBF : %s' % self.osm_file)
self.info(command.extend(args))
command.extend(args)
self.info(command)
if not call(command) == 0:
msg = 'An error occured in imposm with the original file.'
self.error(msg)
@ -304,9 +305,10 @@ class Importer(object):
command += ['-diffdir', self.default['SETTINGS']]
command += ['-mapping', self.mapping_file]
command += ['-connection', self.postgis_uri]
command.extend(args)
command += [join(self.default['IMPORT_QUEUE'], diff)]
self.info(command.extend(args))
self.info(command)
if call(command) == 0:
move(
join(self.default['IMPORT_QUEUE'], diff),