Browse Source

Добавлено обновление кэша настраиваемых пакетов после синхронизации

tags/3.3.2
Mike Khiretskiy 6 years ago
parent
commit
3bebabda12
2 changed files with 12 additions and 0 deletions
  1. +6
    -0
      pym/update/update.py
  2. +6
    -0
      pym/update/utils/cl_update.py

+ 6
- 0
pym/update/update.py View File

@@ -20,6 +20,7 @@ from os import path
import os
import time
from calculate.core.server.gen_pid import search_worked_process
from calculate.core.setup_cache import Cache as SetupCache
from calculate.lib.cl_template import SystemIni
from calculate.lib.datavars import DataVarsError

@@ -1046,3 +1047,8 @@ class Update(object):
except OSError:
pass
return True

def updateSetupCache(self):
cache = SetupCache(self.clVars)
cache.update(force=True)
return True

+ 6
- 0
pym/update/utils/cl_update.py View File

@@ -239,6 +239,12 @@ class ClUpdateAction(Action):
Get('cl_update_eixupdate_force') != 'skip' or
Get('cl_update_eixupdate_force') == 'force'))
},
{'name': 'update_setup_cache',
'message': __("Updating the package setup cache"),
'method': 'Update.updateSetupCache()',
'essential': False,
'condition': lambda Get: Get('cl_update_outdate_set') == 'on'
},
{'name': 'sync_reps:cleanpkg',
'message': __("Removing obsolete distfiles and binary packages"),
'method': 'Update.cleanpkg()',


Loading…
Cancel
Save