Lines 17-23
Link Here
|
17 |
InvalidData, InvalidPackageName, \ |
17 |
InvalidData, InvalidPackageName, \ |
18 |
FileNotFound, PermissionDenied, UnsupportedAPIException |
18 |
FileNotFound, PermissionDenied, UnsupportedAPIException |
19 |
from portage.locks import lockdir, unlockdir |
19 |
from portage.locks import lockdir, unlockdir |
20 |
from portage.output import bold, red, green |
20 |
from portage.output import bold, red, green, colorize |
21 |
from portage.update import fixdbentries |
21 |
from portage.update import fixdbentries |
22 |
from portage.util import apply_secpass_permissions, ConfigProtect, ensure_dirs, \ |
22 |
from portage.util import apply_secpass_permissions, ConfigProtect, ensure_dirs, \ |
23 |
writemsg, writemsg_level, write_atomic, atomic_ofstream, writedict, \ |
23 |
writemsg, writemsg_level, write_atomic, atomic_ofstream, writedict, \ |
Lines 1816-1823
Link Here
|
1816 |
collisions = [] |
1816 |
collisions = [] |
1817 |
destroot = normalize_path(destroot).rstrip(os.path.sep) + \ |
1817 |
destroot = normalize_path(destroot).rstrip(os.path.sep) + \ |
1818 |
os.path.sep |
1818 |
os.path.sep |
1819 |
showMessage("%s checking %d files for package collisions\n" % \ |
1819 |
showMessage(" %s checking %d files for package collisions\n" % \ |
1820 |
(green("*"), len(mycontents))) |
1820 |
(colorize("GOOD", "*"), len(mycontents))) |
1821 |
for i, f in enumerate(mycontents): |
1821 |
for i, f in enumerate(mycontents): |
1822 |
if i % 1000 == 0 and i != 0: |
1822 |
if i % 1000 == 0 and i != 0: |
1823 |
showMessage("%d files checked ...\n" % i) |
1823 |
showMessage("%d files checked ...\n" % i) |
Lines 2427-2433
Link Here
|
2427 |
showMessage(">>> Original instance of package unmerged safely.\n") |
2427 |
showMessage(">>> Original instance of package unmerged safely.\n") |
2428 |
|
2428 |
|
2429 |
if len(others_in_slot) > 1: |
2429 |
if len(others_in_slot) > 1: |
2430 |
from portage.output import colorize |
|
|
2431 |
showMessage(colorize("WARN", "WARNING:") |
2430 |
showMessage(colorize("WARN", "WARNING:") |
2432 |
+ " AUTOCLEAN is disabled. This can cause serious" |
2431 |
+ " AUTOCLEAN is disabled. This can cause serious" |
2433 |
+ " problems due to overlapping packages.\n", |
2432 |
+ " problems due to overlapping packages.\n", |
Lines 2547-2558
Link Here
|
2547 |
mystat = os.lstat(mysrc) |
2546 |
mystat = os.lstat(mysrc) |
2548 |
except OSError, e: |
2547 |
except OSError, e: |
2549 |
writemsg("\n") |
2548 |
writemsg("\n") |
2550 |
writemsg(red("!!! ERROR: There appears to be ")+bold("FILE SYSTEM CORRUPTION.")+red(" A file that is listed\n")) |
2549 |
writemsg(colorize("BAD","!!! ERROR: There appears to be ")+bold("FILE SYSTEM CORRUPTION.")+colorize("BAD"," A file that is listed\n")) |
2551 |
writemsg(red("!!! as existing is not capable of being stat'd. If you are using an\n")) |
2550 |
writemsg(colorize("BAD","!!! as existing is not capable of being stat'd. If you are using an\n")) |
2552 |
writemsg(red("!!! experimental kernel, please boot into a stable one, force an fsck,\n")) |
2551 |
writemsg(colorize("BAD","!!! experimental kernel, please boot into a stable one, force an fsck,\n")) |
2553 |
writemsg(red("!!! and ensure your filesystem is in a sane state. ")+bold("'shutdown -Fr now'\n")) |
2552 |
writemsg(colorize("BAD","!!! and ensure your filesystem is in a sane state. ")+bold("'shutdown -Fr now'\n")) |
2554 |
writemsg(red("!!! File: ")+str(mysrc)+"\n", noiselevel=-1) |
2553 |
writemsg(colorize("BAD","!!! File: ")+str(mysrc)+"\n", noiselevel=-1) |
2555 |
writemsg(red("!!! Error: ")+str(e)+"\n", noiselevel=-1) |
2554 |
writemsg(colorize("BAD","!!! Error: ")+str(e)+"\n", noiselevel=-1) |
2556 |
return 1 |
2555 |
return 1 |
2557 |
|
2556 |
|
2558 |
mymode = mystat[stat.ST_MODE] |
2557 |
mymode = mystat[stat.ST_MODE] |