[entropy.spm] PortagePlugin: add_installed_package, always bump mtime of pkg_dir if available

This commit is contained in:
Fabio Erculiani
2011-10-04 23:33:26 +02:00
parent b999bb37d6
commit 1df7743540

View File

@@ -2955,6 +2955,7 @@ class PortagePlugin(SpmPlugin):
if not vdb_failed:
# from this point, every vardb change has to be committed
self._bump_vartree_mtime(spm_package)
if os.path.isdir(pkg_dir):
# We also need to bump vdb mtime now, otherwise Portage
# will potentially pick up wrong cache data
os.utime(pkg_dir, None)