14 Commits

Author SHA1 Message Date
Ivan A. Melnikov
cfd8dee1c6 More python3 compatibility
Try to convert all names, versions and releases
to str when reading.

Now we can actually use the interactive shell.
2023-08-02 17:05:46 +04:00
Ivan A. Melnikov
b674458df2 First steps towards python3 compatibility
Reports still use bytes/strs interchangeably,
but at least we can load things.
2023-03-10 14:42:01 +04:00
Ivan A. Melnikov
b8a040caac Update Makefile and fix some flake8 warnings 2021-09-08 12:43:17 +04:00
Ivan A. Melnikov
8edb64675c Inapt: SRPM dependencies report
For now, we just load src/pkglists and build a simple
report on what packages you have to have in order
to satisfy SRPM's build requires. Everything is
very approxymate, of course.
2021-08-12 15:19:08 +04:00
Ivan A. Melnikov
250518bae8 lists: Use src.list from repository
... to get all the ENVRs of the packages it has.

Now comparing different arches of the same repo
is not important, and Sisyphus deperecated
source pkglists, so we can use the official
information source.
2020-09-18 13:43:54 +04:00
Ivan A. Melnikov
6634f39f4b port_stats/lists: Raise error for empty prefix
Sometimes, when lists are updated while we are
reading them, we get 0 results, and all our
reports become very confusing. This change
adds a check to raise an exception in this case.
2019-08-15 10:38:22 +04:00
Ivan A. Melnikov
98b20601ce Fix flake8 warning 2019-04-04 13:26:19 +04:00
Ivan A. Melnikov
7a656153fc Fix some flakes8 warnings 2019-01-17 13:25:22 +04:00
Ivan A. Melnikov
7de1bd9111 Port outdated_tasks to use new config 2018-08-13 12:56:07 +04:00
Ivan A. Melnikov
2e6ac86991 port_stats: Introducing config
Put all the args to config to easily support
several repositories.
2018-08-10 18:39:27 +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
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
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