Show More
@@ -124,10 +124,13 b' def _chain(src, dst, a, b):' | |||
|
124 | 124 | # file is a copy of an existing file |
|
125 | 125 | t[k] = v |
|
126 | 126 | |
|
127 | for k, v in list(t.items()): | |
|
127 | 128 | # remove criss-crossed copies |
|
128 | for k, v in list(t.items()): | |
|
129 | 129 | if k in src and v in dst: |
|
130 | 130 | del t[k] |
|
131 | # remove copies to files that were then removed | |
|
132 | elif k not in dst: | |
|
133 | del t[k] | |
|
131 | 134 | |
|
132 | 135 | return t |
|
133 | 136 |
General Comments 0
You need to be logged in to leave comments.
Login now