Commit graph

2 commits

Author SHA1 Message Date
Pierre-Yves Chibon
94d17b2c05 Restructure the code
- Add an --env variable to change the environment used via the CLI
- Drop the ProductCache object
- Introduce the DistgitBugzillaSync object which allows dropping global
  variables to rely on attributes instead.
- Drop the pkgdb compatibility layer that was once introduced, pkgdb is
  no longer a thing and it's time to move on

This changes a little bit the order in which projects are updated, it
used to be by products first (Fedora, Fedora EPEL...) then package,
now it's the opposite: by package first then product.

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2019-11-21 09:58:17 +01:00
Nils Philippsen
e59e1d510f move code to distgit_bugzilla_sync package
This allows as to have different functionality, e.g. handling
configuration, in their own separate modules.

Use relative imports for project-internal modules and remove shebangs
from them as they're not marked executable anyway. Instead, add
run-distgit-bugzilla-sync for testing from the repo worktree.

Signed-off-by: Nils Philippsen <nils@redhat.com>
2019-11-19 17:25:35 +01:00