Browse Source

Adiciona tag zope ao exportar zope mesmo sem mudança

pull/2023/head
Marcio Mazza 7 years ago
parent
commit
8d16524d85
  1. 10
      sapl/legacy/scripts/exporta_zope/exporta_zope.py

10
sapl/legacy/scripts/exporta_zope/exporta_zope.py

@ -17,14 +17,14 @@ from functools import partial
import git import git
import magic import magic
import yaml import yaml
from unipath import Path
import ZODB.DB import ZODB.DB
import ZODB.FileStorage import ZODB.FileStorage
from unipath import Path from variaveis_comuns import DIR_DADOS_MIGRACAO, TAG_ZOPE
from ZODB.broken import Broken from ZODB.broken import Broken
from ZODB.POSException import POSKeyError from ZODB.POSException import POSKeyError
from variaveis_comuns import DIR_DADOS_MIGRACAO, TAG_ZOPE
EXTENSOES = { EXTENSOES = {
'application/msword': '.doc', 'application/msword': '.doc',
'application/pdf': '.pdf', 'application/pdf': '.pdf',
@ -427,8 +427,8 @@ def dump_sapl(sigla):
# se de fato existe mudança # se de fato existe mudança
status = 'completa' if finalizado else 'parcial' status = 'completa' if finalizado else 'parcial'
repo.index.commit(u'Exportação do zope {}'.format(status)) repo.index.commit(u'Exportação do zope {}'.format(status))
if finalizado: if finalizado:
repo.git.execute('git tag -f'.split() + [TAG_ZOPE]) repo.git.execute('git tag -f'.split() + [TAG_ZOPE])
if __name__ == "__main__": if __name__ == "__main__":

Loading…
Cancel
Save