add conf['oldver'] for get_version

This commit is contained in:
lilydjwg 2014-11-03 11:52:48 +08:00
parent ad31a14c75
commit ab9f453e3a
1 changed files with 3 additions and 1 deletions

View File

@ -88,8 +88,10 @@ class Source:
if name == '__config__':
continue
self.task_inc()
conf = config[name]
conf['oldver'] = self.oldvers.get(name, None)
with ExceptionStackContext(self._handle_exception):
get_version(name, config[name], self.print_version_update)
get_version(name, conf, self.print_version_update)
def _handle_exception(self, type, value, traceback):
self.task_dec()