diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-11-17 23:09:24 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-11-17 23:09:24 +0000 |
commit | e46bcee18c36af3cdda058c7a074e2612087b78f (patch) | |
tree | 45d90b67fe94536c9ffefc17100f264fb049f3a4 /pym/portage/cache/fs_template.py | |
parent | 36906ed745a0edc7244943f2949dfd564d4535b6 (diff) | |
download | portage-e46bcee18c36af3cdda058c7a074e2612087b78f.tar.gz portage-e46bcee18c36af3cdda058c7a074e2612087b78f.tar.bz2 portage-e46bcee18c36af3cdda058c7a074e2612087b78f.zip |
Bug #139134 - Make the flat_hash and metadata modules write the _mtime_
field inside the file instead of mangling the mtime of the cache entry
file. Also, fix FsBased._ensure_access() to properly skip the utime()
call when no mtime is passed in. Theses cache changes are compatible
with current stable portage (2.1.4.x), which uses the _mtime_ field
contained in the file when available.
svn path=/main/trunk/; revision=11984
Diffstat (limited to 'pym/portage/cache/fs_template.py')
-rw-r--r-- | pym/portage/cache/fs_template.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/cache/fs_template.py b/pym/portage/cache/fs_template.py index e619db0ac..f3dc0ce44 100644 --- a/pym/portage/cache/fs_template.py +++ b/pym/portage/cache/fs_template.py @@ -36,7 +36,7 @@ class FsBased(template.database): try: os.chown(path, -1, self._gid) os.chmod(path, self._perms) - if mtime: + if mtime != -1: mtime=long(mtime) os.utime(path, (mtime, mtime)) except (OSError, IOError): |