Skip to content

Commit

Permalink
Fix emerge time for pkgnames with special chars
Browse files Browse the repository at this point in the history
  • Loading branch information
tusooa authored and perkinslr committed Feb 11, 2021
1 parent c13a661 commit 4dd07c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions showem
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ get_extra_info() {
# TOTAL is the total number of packages in that emerge sequence.

# Inspired by https://github.com/gentoo-perl/genlop/blob/master/genlop#L625
grep -E -e '^[0-9]+: >>> emerge \([0-9]+ of [0-9]+\) '"$PKGNAME"' to' "$MAIN_LOG_DIR/$EMERGE_LOG" | \
tail -n1 | sed -re 's@^([0-9]+): >>> emerge \(([0-9]+) of ([0-9]+)\) ('"$PKGNAME"') to.*@\1 \2 \3@'
perl -ne 's@^([0-9]+): >>> emerge \(([0-9]+) of ([0-9]+)\) (\Q'"$PKGNAME"'\E) to.*@\1 \2 \3@ and print' "$MAIN_LOG_DIR/$EMERGE_LOG" | \
tail -n1
}
monitor_current_builds() {
# This function reports any changes from the last scan
Expand Down

0 comments on commit 4dd07c7

Please sign in to comment.