If we have a local sync-allow-hardlinks setting in [gentoo],
it overrides the DEFAULT section. The default setting for
sync-allow-hardlinks is already done in the RepoConfig
class.
Reported-by: Ulrich Müller <ulm@gentoo.org>
See: https://gitweb.gentoo.org/proj/portage.git/commit/?id=
36dca004be44e2ca51cf0188958e9404136a049f
Package-Manager: Portage-2.3.42, Repoman-2.3.9
python_prepare_all() {
distutils-r1_python_prepare_all
+ # Apply 36dca004be44 so that sync-allow-hardlinks can
+ # be set in the DEFAULT section.
+ sed -e 's:^sync-allow-hardlinks:#\0:' -i cnf/repos.conf || die
+
if use gentoo-dev; then
einfo "Disabling --dynamic-deps by default for gentoo-dev..."
sed -e 's:\("--dynamic-deps", \)\("y"\):\1"n":' \