59
60
LOG.debug("Package list need refresh")
60
61
self.package_list[hostid] = {'valid': True, 'package_list': newpkg_list}
61
with open(os.path.join(self.hosts.get_currenthost_dir(), '%s_%s' % (PACKAGE_LIST_PREFIX, hostid)), 'w') as f:
62
utils.save_json_file_update(os.path.join(self.hosts.get_currenthost_dir(), '%s_%s' % (PACKAGE_LIST_PREFIX, hostid)),
63
64
if self.hosts.current_host['packages_checksum'] != checksum:
64
65
self.hosts.current_host['packages_checksum'] = checksum
65
66
self.hosts.save_current_host()