summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-11-08 00:22:20 +0100
committerMichał Górny <mgorny@gentoo.org>2017-11-10 18:19:52 +0100
commit6d4548b7d0cabff75766121c8f289d66458845b3 (patch)
tree5d2805397c630f34a0f99699c4e2ed9775ea06bd /metadata
parentsys-apps/coreutils-8.28-r1: added ~mips, bug 636702 (diff)
downloadgentoo-6d4548b7d0cabff75766121c8f289d66458845b3.tar.gz
gentoo-6d4548b7d0cabff75766121c8f289d66458845b3.tar.bz2
gentoo-6d4548b7d0cabff75766121c8f289d66458845b3.zip
layout.conf: Add manifest-required-hashes setting
Add the manifest-required-hashes setting that specifies which hashes need to be present in the Manifest files for Portage to consider old distfile checksums acceptable (and not refetch the files to rehash them). It is complementary to manifest-hashes that specifies which hashes are used in new/updated entries. Formerly, this setting was hardcoded in Portage. However, the new Portage release will no longer do that and instead expect layout.conf to supply the setting.
Diffstat (limited to 'metadata')
-rw-r--r--metadata/layout.conf6
1 files changed, 6 insertions, 0 deletions
diff --git a/metadata/layout.conf b/metadata/layout.conf
index a46d1b7b9411..cb517f356887 100644
--- a/metadata/layout.conf
+++ b/metadata/layout.conf
@@ -4,11 +4,17 @@
# For details on this file, see the layout.conf section of the
# portage(5) man page.
+# The following hashes are used for new/updated Manifest entries.
# This went live Wednesday, July 4, 2012 at 10:00 UTC
# https://archives.gentoo.org/gentoo-dev-announce/message/a15cbea85dd089c99302f949b4072c20
# https://www.gentoo.org/glep/glep-0059.html
manifest-hashes = SHA256 SHA512 WHIRLPOOL
+# The following hashes are required on all Manifest entries. If any
+# of them are missing, repoman will refetch and rehash old distfiles.
+# Otherwise, old distfiles will keep using their current hash set.
+manifest-required-hashes = SHA512
+
# 2013-04-09 gentoo's council says to deprecate EAPIs 1 and 2 (bug #470670).
# 2014-02-25 council meeting deprecated EAPIs 0 and 3.
# 2015-10-11 council meeting deprecated EAPI 4.