misc: ignore .max_id in zip export/import (#53225)

This commit is contained in:
Frédéric Péters 2021-04-17 09:10:47 +02:00
parent 5b45fe4681
commit 591cb8aa2e
2 changed files with 2 additions and 2 deletions

View File

@ -1042,7 +1042,7 @@ class SettingsDirectory(QommonSettingsDirectory):
if not os.path.exists(path): if not os.path.exists(path):
continue continue
for f in os.listdir(path): for f in os.listdir(path):
if f == '.indexes': if f in ('.indexes', '.max_id'):
continue continue
z.write(os.path.join(path, f), os.path.join(d, f)) z.write(os.path.join(path, f), os.path.join(d, f))
if 'datasources' in self.dirs: if 'datasources' in self.dirs:

View File

@ -203,7 +203,7 @@ class WcsPublisher(QommonPublisher):
return rv return rv
for f in z.namelist(): for f in z.namelist():
if '.indexes' in f: if f in ('.indexes', '.max_id'):
continue continue
if os.path.dirname(f) in ( if os.path.dirname(f) in (
'formdefs_xml', 'formdefs_xml',