Commit ea8ac2d2 authored by Yusei Tahara's avatar Yusei Tahara

To check shared directory is not enough. Shared directory may be created...

To check shared directory is not enough. Shared directory may be created before completing installation. Check signature file too.
parent 395a45af
...@@ -285,7 +285,8 @@ class Recipe(object): ...@@ -285,7 +285,8 @@ class Recipe(object):
# In shared mode, do nothing if package has been installed. # In shared mode, do nothing if package has been installed.
if (not self.options['shared'] == ''): if (not self.options['shared'] == ''):
log.info('Checking whether package is installed at shared path: %s', self.options['shared']) log.info('Checking whether package is installed at shared path: %s', self.options['shared'])
if os.path.exists(self.options['shared']): if slapos.recipe.downloadunpacked.test_shared_part(
self.options['shared'], '\n'.join(self._debug_signature_text)):
log.info('This shared package has been installed by other package') log.info('This shared package has been installed by other package')
return parts return parts
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment