return 0
+def search_syncs():
+ f = open_log()
+
+ print "These emerge syncs found"
+ print "\tDate Server"
+ print "\t------------------------------"
+
+ for line in f:
+ if "=== Sync completed with" in line:
+ time = float(line.partition(' ')[0].strip(":"))
+ server = line.rpartition(' ')[2]
+
+ print("\t" + GREEN(give_date(time)) +
+ " === " + server),
+
+
+
def main(status, user_package=None):
try:
_main(status, user_package)
+ " has never been emerged.")
+ elif status == "sync":
+ search_syncs()
+ return
+
+
elif status == "list":
search_log_for_all_packages()
return
\t-c, --current \t Show time until currently compiling package finishes
\t-p, --pretended Calculate compile time from piped 'emerge -p' output
\t-l, --list \t List all emerged packages
+\t-s, --sync \t Show emerge sync history
\t-h, --help \t Show this helpscreen
\t-q, --quiet \t Be less verbose
\t--no-color \t Use colorless output
if arg == "-l" or arg == "--list":
mode = "list"
+ if arg == "-s" or arg == "--sync":
+ mode = "sync"
+
if arg == "-q" or arg == "--quiet":
QUIET = True