Lines 2123-2130
Link Here
|
2123 |
xinfo = xinfo.replace("null/", "") |
2123 |
xinfo = xinfo.replace("null/", "") |
2124 |
if myparent: |
2124 |
if myparent: |
2125 |
xfrom = '(dependency required by '+ \ |
2125 |
xfrom = '(dependency required by '+ \ |
2126 |
green('"%s"' % myparent[2]) + \ |
2126 |
colorize("GOOD",'"%s"' % myparent[2]) + \ |
2127 |
red(' [%s]' % myparent[0]) + ')' |
2127 |
colorize("BAD",' [%s]' % myparent[0]) + ')' |
2128 |
masked_packages = [] |
2128 |
masked_packages = [] |
2129 |
missing_licenses = [] |
2129 |
missing_licenses = [] |
2130 |
have_eapi_mask = False |
2130 |
have_eapi_mask = False |
Lines 2159-2165
Link Here
|
2159 |
(root_config, pkgsettings, cpv, metadata, mreasons)) |
2159 |
(root_config, pkgsettings, cpv, metadata, mreasons)) |
2160 |
|
2160 |
|
2161 |
if masked_packages: |
2161 |
if masked_packages: |
2162 |
print "\n!!! "+red("All ebuilds that could satisfy ")+green(xinfo)+red(" have been masked.") |
2162 |
print "\n!!! "+colorize("BAD","All ebuilds that could satisfy ")+green(xinfo)+colorize("BAD"," have been masked.") |
2163 |
print "!!! One of the following masked packages is required to complete your request:" |
2163 |
print "!!! One of the following masked packages is required to complete your request:" |
2164 |
have_eapi_mask = show_masked_packages(masked_packages) |
2164 |
have_eapi_mask = show_masked_packages(masked_packages) |
2165 |
if have_eapi_mask: |
2165 |
if have_eapi_mask: |
Lines 4772-4780
Link Here
|
4772 |
regen_infodirs.append(inforoot) |
4772 |
regen_infodirs.append(inforoot) |
4773 |
|
4773 |
|
4774 |
if not regen_infodirs: |
4774 |
if not regen_infodirs: |
4775 |
portage.writemsg_stdout(" "+green("*")+" GNU info directory index is up-to-date.\n") |
4775 |
portage.writemsg_stdout(" "+colorize("GOOD","*")+" GNU info directory index is up-to-date.\n") |
4776 |
else: |
4776 |
else: |
4777 |
portage.writemsg_stdout(" "+green("*")+" Regenerating GNU info directory index...\n") |
4777 |
portage.writemsg_stdout(" "+colorize("GOOD","*")+" Regenerating GNU info directory index...\n") |
4778 |
|
4778 |
|
4779 |
dir_extensions = ("", ".gz", ".bz2") |
4779 |
dir_extensions = ("", ".gz", ".bz2") |
4780 |
icount=0 |
4780 |
icount=0 |
Lines 4855-4865
Link Here
|
4855 |
prev_mtimes[inforoot] = long(os.stat(inforoot).st_mtime) |
4855 |
prev_mtimes[inforoot] = long(os.stat(inforoot).st_mtime) |
4856 |
|
4856 |
|
4857 |
if badcount: |
4857 |
if badcount: |
4858 |
print " "+yellow("*")+" Processed",icount,"info files;",badcount,"errors." |
4858 |
print " "+colorize("WARN","*")+" Processed",icount,"info files;",badcount,"errors." |
4859 |
print errmsg |
4859 |
print errmsg |
4860 |
else: |
4860 |
else: |
4861 |
if icount > 0: |
4861 |
if icount > 0: |
4862 |
print " "+green("*")+" Processed",icount,"info files." |
4862 |
print " "+colorize("GOOD","*")+" Processed",icount,"info files." |
4863 |
|
4863 |
|
4864 |
|
4864 |
|
4865 |
def post_emerge(settings, mtimedb, retval): |
4865 |
def post_emerge(settings, mtimedb, retval): |
Lines 5340-5362
Link Here
|
5340 |
elif (exitcode>0): |
5340 |
elif (exitcode>0): |
5341 |
print |
5341 |
print |
5342 |
if exitcode==1: |
5342 |
if exitcode==1: |
5343 |
print darkred("!!!")+green(" Rsync has reported that there is a syntax error. Please ensure") |
5343 |
print colorize("BAD","!!!")+green(" Rsync has reported that there is a syntax error. Please ensure") |
5344 |
print darkred("!!!")+green(" that your SYNC statement is proper.") |
5344 |
print colorize("BAD","!!!")+green(" that your SYNC statement is proper.") |
5345 |
print darkred("!!!")+green(" SYNC="+settings["SYNC"]) |
5345 |
print colorize("BAD","!!!")+green(" SYNC="+settings["SYNC"]) |
5346 |
elif exitcode==11: |
5346 |
elif exitcode==11: |
5347 |
print darkred("!!!")+green(" Rsync has reported that there is a File IO error. Normally") |
5347 |
print colorize("BAD","!!!")+green(" Rsync has reported that there is a File IO error. Normally") |
5348 |
print darkred("!!!")+green(" this means your disk is full, but can be caused by corruption") |
5348 |
print colorize("BAD","!!!")+green(" this means your disk is full, but can be caused by corruption") |
5349 |
print darkred("!!!")+green(" on the filesystem that contains PORTDIR. Please investigate") |
5349 |
print colorize("BAD","!!!")+green(" on the filesystem that contains PORTDIR. Please investigate") |
5350 |
print darkred("!!!")+green(" and try again after the problem has been fixed.") |
5350 |
print colorize("BAD","!!!")+green(" and try again after the problem has been fixed.") |
5351 |
print darkred("!!!")+green(" PORTDIR="+settings["PORTDIR"]) |
5351 |
print colorize("BAD","!!!")+green(" PORTDIR="+settings["PORTDIR"]) |
5352 |
elif exitcode==20: |
5352 |
elif exitcode==20: |
5353 |
print darkred("!!!")+green(" Rsync was killed before it finished.") |
5353 |
print colorize("BAD","!!!")+green(" Rsync was killed before it finished.") |
5354 |
else: |
5354 |
else: |
5355 |
print darkred("!!!")+green(" Rsync has not successfully finished. It is recommended that you keep") |
5355 |
print colorize("BAD","!!!")+green(" Rsync has not successfully finished. It is recommended that you keep") |
5356 |
print darkred("!!!")+green(" trying or that you use the 'emerge-webrsync' option if you are unable") |
5356 |
print colorize("BAD","!!!")+green(" trying or that you use the 'emerge-webrsync' option if you are unable") |
5357 |
print darkred("!!!")+green(" to use rsync due to firewall or other restrictions. This should be a") |
5357 |
print colorize("BAD","!!!")+green(" to use rsync due to firewall or other restrictions. This should be a") |
5358 |
print darkred("!!!")+green(" temporary problem unless complications exist with your network") |
5358 |
print colorize("BAD","!!!")+green(" temporary problem unless complications exist with your network") |
5359 |
print darkred("!!!")+green(" (and possibly your system's filesystem) configuration.") |
5359 |
print colorize("BAD","!!!")+green(" (and possibly your system's filesystem) configuration.") |
5360 |
print |
5360 |
print |
5361 |
sys.exit(exitcode) |
5361 |
sys.exit(exitcode) |
5362 |
elif syncuri[:6]=="cvs://": |
5362 |
elif syncuri[:6]=="cvs://": |