|
|
xinfo = xinfo.replace("null/", "") | xinfo = xinfo.replace("null/", "") |
if myparent: | if myparent: |
xfrom = '(dependency required by '+ \ | xfrom = '(dependency required by '+ \ |
green('"%s"' % myparent[2]) + \ |
colorize("GOOD",'"%s"' % myparent[2]) + \ |
red(' [%s]' % myparent[0]) + ')' |
colorize("BAD",' [%s]' % myparent[0]) + ')' |
masked_packages = [] | masked_packages = [] |
missing_licenses = [] | missing_licenses = [] |
have_eapi_mask = False | have_eapi_mask = False |
|
|
(root_config, pkgsettings, cpv, metadata, mreasons)) | (root_config, pkgsettings, cpv, metadata, mreasons)) |
| |
if masked_packages: | if masked_packages: |
print "\n!!! "+red("All ebuilds that could satisfy ")+green(xinfo)+red(" have been masked.") |
print "\n!!! "+colorize("BAD","All ebuilds that could satisfy ")+green(xinfo)+colorize("BAD"," have been masked.") |
print "!!! One of the following masked packages is required to complete your request:" | print "!!! One of the following masked packages is required to complete your request:" |
have_eapi_mask = show_masked_packages(masked_packages) | have_eapi_mask = show_masked_packages(masked_packages) |
if have_eapi_mask: | if have_eapi_mask: |
|
|
regen_infodirs.append(inforoot) | regen_infodirs.append(inforoot) |
| |
if not regen_infodirs: | if not regen_infodirs: |
portage.writemsg_stdout(" "+green("*")+" GNU info directory index is up-to-date.\n") |
portage.writemsg_stdout(" "+colorize("GOOD","*")+" GNU info directory index is up-to-date.\n") |
else: | else: |
portage.writemsg_stdout(" "+green("*")+" Regenerating GNU info directory index...\n") |
portage.writemsg_stdout(" "+colorize("GOOD","*")+" Regenerating GNU info directory index...\n") |
| |
dir_extensions = ("", ".gz", ".bz2") | dir_extensions = ("", ".gz", ".bz2") |
icount=0 | icount=0 |
|
|
prev_mtimes[inforoot] = long(os.stat(inforoot).st_mtime) | prev_mtimes[inforoot] = long(os.stat(inforoot).st_mtime) |
| |
if badcount: | if badcount: |
print " "+yellow("*")+" Processed",icount,"info files;",badcount,"errors." |
print " "+colorize("WARN","*")+" Processed",icount,"info files;",badcount,"errors." |
print errmsg | print errmsg |
else: | else: |
if icount > 0: | if icount > 0: |
print " "+green("*")+" Processed",icount,"info files." |
print " "+colorize("GOOD","*")+" Processed",icount,"info files." |
| |
| |
def post_emerge(settings, mtimedb, retval): | def post_emerge(settings, mtimedb, retval): |
|
|
elif (exitcode>0): | elif (exitcode>0): |
print | print |
if exitcode==1: | if exitcode==1: |
print darkred("!!!")+green(" Rsync has reported that there is a syntax error. Please ensure") |
print colorize("BAD","!!!")+green(" Rsync has reported that there is a syntax error. Please ensure") |
print darkred("!!!")+green(" that your SYNC statement is proper.") |
print colorize("BAD","!!!")+green(" that your SYNC statement is proper.") |
print darkred("!!!")+green(" SYNC="+settings["SYNC"]) |
print colorize("BAD","!!!")+green(" SYNC="+settings["SYNC"]) |
elif exitcode==11: | elif exitcode==11: |
print darkred("!!!")+green(" Rsync has reported that there is a File IO error. Normally") |
print colorize("BAD","!!!")+green(" Rsync has reported that there is a File IO error. Normally") |
print darkred("!!!")+green(" this means your disk is full, but can be caused by corruption") |
print colorize("BAD","!!!")+green(" this means your disk is full, but can be caused by corruption") |
print darkred("!!!")+green(" on the filesystem that contains PORTDIR. Please investigate") |
print colorize("BAD","!!!")+green(" on the filesystem that contains PORTDIR. Please investigate") |
print darkred("!!!")+green(" and try again after the problem has been fixed.") |
print colorize("BAD","!!!")+green(" and try again after the problem has been fixed.") |
print darkred("!!!")+green(" PORTDIR="+settings["PORTDIR"]) |
print colorize("BAD","!!!")+green(" PORTDIR="+settings["PORTDIR"]) |
elif exitcode==20: | elif exitcode==20: |
print darkred("!!!")+green(" Rsync was killed before it finished.") |
print colorize("BAD","!!!")+green(" Rsync was killed before it finished.") |
else: | else: |
print darkred("!!!")+green(" Rsync has not successfully finished. It is recommended that you keep") |
print colorize("BAD","!!!")+green(" Rsync has not successfully finished. It is recommended that you keep") |
print darkred("!!!")+green(" trying or that you use the 'emerge-webrsync' option if you are unable") |
print colorize("BAD","!!!")+green(" trying or that you use the 'emerge-webrsync' option if you are unable") |
print darkred("!!!")+green(" to use rsync due to firewall or other restrictions. This should be a") |
print colorize("BAD","!!!")+green(" to use rsync due to firewall or other restrictions. This should be a") |
print darkred("!!!")+green(" temporary problem unless complications exist with your network") |
print colorize("BAD","!!!")+green(" temporary problem unless complications exist with your network") |
print darkred("!!!")+green(" (and possibly your system's filesystem) configuration.") |
print colorize("BAD","!!!")+green(" (and possibly your system's filesystem) configuration.") |
print | print |
sys.exit(exitcode) | sys.exit(exitcode) |
elif syncuri[:6]=="cvs://": | elif syncuri[:6]=="cvs://": |