Projet

Général

Profil

0001-misc-ignore-.max_id-in-zip-export-import-53225.patch

Frédéric Péters, 17 avril 2021 10:27

Télécharger (1,39 ko)

Voir les différences:

Subject: [PATCH] misc: ignore .max_id in zip export/import (#53225)

 wcs/admin/settings.py | 2 +-
 wcs/publisher.py      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
wcs/admin/settings.py
1042 1042
                    if not os.path.exists(path):
1043 1043
                        continue
1044 1044
                    for f in os.listdir(path):
1045
                        if f == '.indexes':
1045
                        if f in ('.indexes', '.max_id'):
1046 1046
                            continue
1047 1047
                        z.write(os.path.join(path, f), os.path.join(d, f))
1048 1048
                if 'datasources' in self.dirs:
wcs/publisher.py
203 203
            return rv
204 204

  
205 205
        for f in z.namelist():
206
            if '.indexes' in f:
206
            if f in ('.indexes', '.max_id'):
207 207
                continue
208 208
            if os.path.dirname(f) in (
209 209
                'formdefs_xml',
210
-