aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Freed <dwfreed@mtu.edu>2016-10-27 16:22:37 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2016-10-27 16:22:37 -0700
commite6c462e2f88e208d1c898d8dc0bd4096db99547d (patch)
treefa4520dd7adb8540774a94772cc71fca92a21a78 /thicken-manifests.py
parentverify-digests: dedupe digests for some input cases (diff)
downloadmastermirror-scripts-e6c462e2f88e208d1c898d8dc0bd4096db99547d.tar.gz
mastermirror-scripts-e6c462e2f88e208d1c898d8dc0bd4096db99547d.tar.bz2
mastermirror-scripts-e6c462e2f88e208d1c898d8dc0bd4096db99547d.zip
Extract Manifest mtime bump per https://bugs.gentoo.org/show_bug.cgi?id=596934#c1.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'thicken-manifests.py')
-rwxr-xr-xthicken-manifests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/thicken-manifests.py b/thicken-manifests.py
index 17a19e3..0e46f04 100755
--- a/thicken-manifests.py
+++ b/thicken-manifests.py
@@ -126,6 +126,10 @@ def maybe_thicken_manifest(pkg_dir):
return
# If it changed, write it out
if manifest.write():
+ if newest_mtime == manifest_mtime:
+ # portage says the manifest changed, but mtime is supposed to stay the same
+ # bump the mtime by 1 to be safe
+ newest_mtime += 1
if args.sign:
try:
gpg_sign(manifest.getFullname())