Skip to content

Feature Request: Total ETA in genlop -c #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Massimo-B opened this issue Aug 8, 2022 · 0 comments
Open

Feature Request: Total ETA in genlop -c #13

Massimo-B opened this issue Aug 8, 2022 · 0 comments

Comments

@Massimo-B
Copy link

Please add the following powerful feature in genlop -c:
Beside the single ETA for the current package please add the ETA for all the pending packages.

As one one of the core features of genlop is the ETA calculation based on the emerge.log, another interesting calculation would be the total ETA for all the pending packages, which could also be easily possible.
However I guess that the calculation only based on emerge.log could be quite expensive and running a watch -n1 -cd genlop -c for some 50+ pending packages even more. Therefore a database replacing emerge.log could be required for such things.

Additionally I'm rotating and compressing my logs:

# cat /etc/logrotate.d/emerge
/var/log/emerge.log {
    create 660 portage portage
    rotate 2
    size 2M
    maxage 220
    nodateext
    compresscmd /bin/bzip2
    uncompresscmd /bin/bunzip2
    compressext .bz2
}
# type genlop
genlop is a function
genlop () 
{ 
    local opts args;
    for args in "$@";
    do
        opts+=("$args");
    done;
    for logfile in /var/log/emerge.log*;
    do
        if [[ -r "$logfile" ]]; then
            opts+=(-f "$logfile");
        fi;
    done;
    command genlop "${opts[@]}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant