--- /usr/bin/genlop.old 2006-06-22 15:47:34.000000000 +0200 +++ /usr/bin/genlop 2006-06-23 14:37:21.000000000 +0200 @@ -503,6 +503,7 @@ # not check for sanity and have users check their FEATURES instead. my @targets = (); my @sandbox_pids = qx{ps --no-header -o pid -C sandbox}; + my ($e_curmerge, $e_lastmerge); if (scalar @sandbox_pids == 0) { print colored("!!!", $COLORS{'red'}); print " Error: no working merge found.\n"; @@ -533,10 +534,12 @@ my $handle; open_file($logfile, \$handle); foreach (<$handle>) { - if (m/^(.*?)\: \>\>\> emerge .*?\)(.*?\/$ebuild_arg-[0-9].*?)to \//) + if (m/^(.*?)\: \>\>\> emerge \((.*?) of (.*?)\)(.*?\/$ebuild_arg-[0-9].*?)to \//) { $e_start = $1; - $e_current = $2; + $e_curmerge = $2; + $e_lastmerge = $3; + $e_current = $4; } if (m/^(.*?)\: ::: completed .*?\) .*\/$ebuild_arg-[0-9].* to \//) { $e_end = $1; @@ -548,6 +551,7 @@ } $e_end = CORE::time(); >ime($e_end - $e_start); + print "\n Currently merging $e_curmerge out of $e_lastmerge\n"; print colored("\n \*$e_current\n\n", $COLORS{'blue'}); print " current merge time: "; $current_found = undef;