Ensure presence of CONFIG_PROTECT_MASK files

Right now, portage will treat absent files as protected.

In order to get around this, we need to make sure they're there.
This commit is contained in:
JD Friedrikson 2017-06-01 19:52:38 -04:00
parent c8d79f0d00
commit d690a88a2f
No known key found for this signature in database
GPG key ID: E113967DDD441EEC

View file

@ -6157,6 +6157,9 @@ __gentoo_config_protection() {
# cfg-update and then restart the bootstrapping script, so instead we allow
# at this point to modify certain config files directly
export CONFIG_PROTECT_MASK="${CONFIG_PROTECT_MASK:-} /etc/portage/package.accept_keywords /etc/portage/package.keywords /etc/portage/package.license /etc/portage/package.unmask /etc/portage/package.use"
# emerge currently won't write to files that aren't there, so we need to ensure their presence
touch /etc/portage/package.accept_keywords /etc/portage/package.keywords /etc/portage/package.license /etc/portage/package.unmask /etc/portage/package.use
}
__gentoo_pre_dep() {