Niels Thykier
2c9e0b9b97
do_all: Prune cruft after non-recursive hints (e.g. "easy")
...
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
Niels Thykier
c30ecbb7e8
Skip cruft on source migration / removal items
...
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
Niels Thykier
73791e48d0
Rename migrate_item{,s}_to_target_suite
...
It accepts multiple items, so using a singular "item" seems like a
misfeature.
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
Niels Thykier
98d4553185
Include old cruft items directly in upgrade_me
...
This enables us to remove the recursion in iter_packages (and thereby
the added noise from it). As a side-effect of this change, the solver
can now solve the "left-binary-removal" test case as it can see the
relevant cruft item together with the regular items needed to solve
the migration.
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
Niels Thykier
5d408fa800
Remove new cruft items in iter_packages
...
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
Niels Thykier
32ebe9d4e0
Ensure get_auto_hinter_hints does not choke on cruft items
...
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
Paul Gevers
16f823dd91
autopkgtest: in Debian we want linux to be treated as any other
6 years ago
Paul Gevers
1ca76486b5
Replace libreoffice with doxygen as the libgcc smoke test for gcc.
...
Bug-Ubuntu: https://bugs.launchpad.net/bugs/1793260
Original patches by Steve Langasek
6 years ago
Niels Thykier
3de7816fd2
tests: Fix test broken by refactoring
...
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
Niels Thykier
69d42ffb36
solver: improve apply_order to simplify more code
...
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
Niels Thykier
b306700376
solver: Extract a function from _comute_group_order_adds
...
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
Niels Thykier
259fecf6cf
solver: Rename a variable to avoid confusion
...
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
Niels Thykier
cdcfe85bfa
solver: Replace dict with a proper object
...
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
Niels Thykier
93f101bee2
solver: Extract some common code into a function
...
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
Niels Thykier
2ed6161b49
solver: Refactor out a function to avoid duplicated code
...
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
Niels Thykier
af20634b12
solver: Merge some loops to reduce nesting level
...
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
Niels Thykier
b61e1086bd
solver: Invert an if-statement to reduce max indentation level
...
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
Niels Thykier
68407c53c0
Remove an unnecessary if-statement
...
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
Niels Thykier
9971714e27
solver: Merge two loops by using chain
...
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
Niels Thykier
16dc303190
solver: Reduce two small loops into a comprehension
...
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
Niels Thykier
d3e06fc45f
solver: Split _compute_group_order into three methods
...
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
Niels Thykier
c65b377c5d
solver: Split solve_groups into 3 smaller methods
...
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
Niels Thykier
4eb038ab6d
autopkgtest: Move field creation into __init__
...
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
Paul Gevers
31db506e39
tests/test_policy.py: No change breaking long lines
6 years ago
Paul Gevers
1ecb07ac2d
autopkgtest: bug fix in baseline cache
6 years ago
Paul Gevers
075d4d823b
autopkgtest: fix copy() in save_state
6 years ago
Paul Gevers
c6c5c45287
autopkgtest: tiny change for easier understanding
6 years ago
Paul Gevers
d038e7bbe6
autopkgtest: simplify bin_triggers logic/naming
6 years ago
Niels Thykier
caf83b9357
Fix the remaining two style issues in britney2/__init__.py
...
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
Niels Thykier
e0b46e5196
Make the source pkg consistency checks a TargetSuite method
...
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
Niels Thykier
e3d68164f1
Fix typo in log output
...
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
Niels Thykier
d4bdccf021
Unconditionally cleanup cruft/smooth updates
...
If people do not use these features then there will be nothing to
remove anyway.
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
Niels Thykier
b200c15062
Add a missing "no cover"
...
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
Niels Thykier
427328821e
Remove redundant variables
...
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
Niels Thykier
b0835fa4a1
Fix pycodestyle warnings
...
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
Ivo De Decker
328695ee63
Enable BuiltUsingPolicy
...
Signed-off-by: Ivo De Decker <ivodd@debian.org>
6 years ago
Ivo De Decker
66648c1a03
Add BuiltUsingPolicy
...
Signed-off-by: Ivo De Decker <ivodd@debian.org>
6 years ago
Ivo De Decker
4fcb90b775
Read Built-Using info for binary packages
...
Signed-off-by: Ivo De Decker <ivodd@debian.org>
6 years ago
Ivo De Decker
35ae8848b4
Fix apply_src_policies when policy is applied on multiple archs
...
Move the logic of apply_src_policy and apply_srcarch_policy into PolicyEngine.
This fixes an issue with the excuses.yaml output introduced in commit
15e5228669: only the last verdict was added to the excuse info for that
policy.
Signed-off-by: Ivo De Decker <ivodd@debian.org>
6 years ago
Niels Thykier
22610d86a0
Skip codestyle in stable
...
Testing this is sid is sufficient and avoids annoying cases where
pycodestyle might work differently in stable vs. sid.
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
Niels Thykier
bb85373210
Ignore pep-8 errors in britney2-tests
...
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
Niels Thykier
6bc776daf1
Accept non-zero exit codes from pycodestyle
...
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
Niels Thykier
594ac576b9
Include codestyle reports for master branch
...
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
Niels Thykier
dc820756cf
Accept all known issues (by file)
...
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
Niels Thykier
bb699f7416
Make britney2/utils.py PEP-8 clean
...
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
Niels Thykier
5a38e00996
Fix pep8 issues in check_target_suite_source_pkg_consistency
...
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
Niels Thykier
c9d523da93
Remove trailing whitespace
...
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
Niels Thykier
822a8c712c
Migrate to pycodestyle and setup a basic config file
...
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
edawine
ed2aef3db1
Added pycodestyle checks
...
Changed .travis.yml to download pep8 module
Added pycodestyle conformance checks to be run by nosetests
6 years ago
Ivo De Decker
7be0dc2ee8
Sort impossible dependency output in excuses.
...
This makes the output more deterministic.
Signed-off-by: Ivo De Decker <ivodd@debian.org>
6 years ago