Lines 2314-2320
Link Here
|
2314 |
from portage.util import write_atomic |
2314 |
from portage.util import write_atomic |
2315 |
cvs_header = re.compile(r'^#\s*\$Header.*\$$') |
2315 |
cvs_header = re.compile(r'^#\s*\$Header.*\$$') |
2316 |
for x in myheaders: |
2316 |
for x in myheaders: |
2317 |
f = open(x) |
2317 |
f = codecs.open(_unicode_encode(x, |
|
|
2318 |
encoding=_encodings['fs'], errors='strict'), |
2319 |
mode='r', encoding=_encodings['repo.content'], errors='strict') |
2318 |
mylines = f.readlines() |
2320 |
mylines = f.readlines() |
2319 |
f.close() |
2321 |
f.close() |
2320 |
modified = False |
2322 |
modified = False |
Lines 2323-2329
Link Here
|
2323 |
mylines[i] = line.replace("/Attic/", "/") |
2325 |
mylines[i] = line.replace("/Attic/", "/") |
2324 |
modified = True |
2326 |
modified = True |
2325 |
if modified: |
2327 |
if modified: |
2326 |
write_atomic(x, "".join(mylines)) |
2328 |
write_atomic(x, "".join(mylines), |
|
|
2329 |
encoding=_encodings['repo.content'], errors='strict') |
2327 |
|
2330 |
|
2328 |
manifest_commit_required = True |
2331 |
manifest_commit_required = True |
2329 |
if vcs in ('cvs', 'svn') and (myupdates or myremoved): |
2332 |
if vcs in ('cvs', 'svn') and (myupdates or myremoved): |