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