110 Commits

Author SHA1 Message Date
Ivan A. Melnikov
18437e19d3 port_stats: More interactive improvements
- package colors in ti()
- next_tasks() -- list all non-done tasks that would update
  packages.
2018-07-19 17:50:57 +04:00
Ivan A. Melnikov
8210c4a077 port_stats: More interactive funtions 2018-07-04 15:53:40 +04:00
Ivan A. Melnikov
1eb2d798a6 port_stats: BUG: stop confusing YELLOW and SLATE 2018-07-04 15:51:38 +04:00
Ivan A. Melnikov
972370e9df Use CFFI to work with librpm
This change adds two new functions: evr_cmp and parse_evr,
that use librpm-4.0.4 public interface. These functions
replace calling rpmevrcmp via subprocess, which makes
mass comparisons considerably faster.
2018-06-26 13:05:37 +04:00
Ivan A. Melnikov
44175d1f34 port_stats: Add script that finds outdated tasks
python -m port_stats.outdated_tasks \
        /mnt/repo_secondary/sisyphus_mipsel/release/latest \
        /mnt/tasks_secondary \
    | tee outdated_tasks.txt
2018-06-25 19:49:40 +04:00
Ivan A. Melnikov
7fd76b9959 Daily: count pending tasks
It's convenient to have the number ready.
2018-06-25 19:48:47 +04:00
Ivan A. Melnikov
5df6aca515 port_stats: New tools in interactive module
Now it works with colors, too.
2018-06-22 14:40:38 +04:00
Ivan A. Melnikov
c96baad339 Initial take on daily repo report generation 2018-06-20 15:53:53 +04:00
Ivan A. Melnikov
9b62e446d5 port_stats: Tools for getting tasks information
You can try doing this within an interactive python shell:

    python -i -m port_stats.interactive

The default pathes work on basealt.
2018-06-20 14:09:51 +04:00
Ivan A. Melnikov
e66fbdd2bb Major port_stats refactoring
- introduce the module
- rewrite srclists/stats in the terms of it
- get rid of the hard dependency on python-module-rpm
  (the new code can use pkglist-query and rpmevrcmp instead)
2018-06-19 14:18:54 +04:00