1 |
Since commit 02417188225758b1822d176abd8902a92300a371, config |
2 |
protection was triggered for identical files if |
3 |
config-protect-if-modified was not enabled in FEATURES. Fix it |
4 |
to skip config protection in this case. |
5 |
|
6 |
Fixes: 024171882257 ("CONFIG_PROTECT: protect symlinks, bug #485598") |
7 |
X-Gentoo-Bug: 531854 |
8 |
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=531854 |
9 |
--- |
10 |
pym/portage/dbapi/vartree.py | 6 ++++-- |
11 |
1 file changed, 4 insertions(+), 2 deletions(-) |
12 |
|
13 |
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py |
14 |
index df031cd..4840492 100644 |
15 |
--- a/pym/portage/dbapi/vartree.py |
16 |
+++ b/pym/portage/dbapi/vartree.py |
17 |
@@ -4856,8 +4856,10 @@ class dblink(object): |
18 |
|
19 |
if protected and dest_mode is not None: |
20 |
# we have a protection path; enable config file management. |
21 |
- if src_md5 != dest_md5 and \ |
22 |
- src_md5 == cfgfiledict.get(dest_real, [None])[0]: |
23 |
+ if src_md5 == dest_md5: |
24 |
+ protected = False |
25 |
+ |
26 |
+ elif src_md5 == cfgfiledict.get(dest_real, [None])[0]: |
27 |
# An identical update has previously been |
28 |
# merged. Skip it unless the user has chosen |
29 |
# --noconfmem. |
30 |
-- |
31 |
2.0.4 |