20 Commits

Author SHA1 Message Date
Niels Thykier
f05145c3f7 excuse.py: Add "is-candidate" to the excuse
Signed-off-by: Niels Thykier <niels@thykier.net>
2013-12-11 21:21:15 +01:00
Niels Thykier
b0d876093a excuse.py: Rename keys to include "-" between words
Signed-off-by: Niels Thykier <niels@thykier.net>
2013-12-11 21:21:15 +01:00
Niels Thykier
24db50994e excuse.py: Use a set for storing bugs
Signed-off-by: Niels Thykier <niels@thykier.net>
2013-12-11 21:21:15 +01:00
Ivo De Decker
87813401bf handle export for excuse with 'force' 2013-12-11 21:21:15 +01:00
Ivo De Decker
68d2d54663 first attempt at adding reason 2013-12-10 22:27:32 +01:00
Ivo De Decker
6a7aeac400 add bug list to yaml 2013-12-10 22:27:32 +01:00
Ivo De Decker
ab4de3b93c first attempt at yaml logging 2013-12-10 22:26:26 +01:00
Ivo De Decker
4fb5b6d313 fix maintainer regex to get rid of excess space
Signed-off-by: Niels Thykier <niels@thykier.net>
2013-12-06 22:45:06 +01:00
Adam D. Barratt
c95169c8ca Fix excuse invalidation checks for arch-specific dependencies
A dependency on an arch-specific package which is not a valid candidate
should lead to the depending package not being a candidate.

For now we ensure that the generated excuses output remains the same,
so that we don't have to wait for consumers to adapt to a new format.
Changing the output format should be revisited at a later point.

See Debian bug #693068.

Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
2012-12-25 18:28:14 +00:00
Adam D. Barratt
d1d5d9826e Merge branch 'master' of file:///srv/release.debian.org/git/britney2 2012-01-08 12:36:03 +00:00
Adam D. Barratt
a4f91cce41 Drop closing li tag from "valid candidate" messages
Although it's technically correct, none of the other messages include closing
tags, and at least grep-excuses isn't prepared to deal with closing tags.

Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
2012-01-08 12:34:55 +00:00
Niels Thykier
edbd7f4563 Remove some unused fields and methods in excuse
In the unsat_deps case, it was used to update a field in the excuse,
but the field was never read anywhere.

Signed-off-by: Niels Thykier <niels@thykier.net>
2012-01-06 20:52:18 +01:00
Adam D. Barratt
1b0a85d879 Make Excuse a new-style class, so property decorators work as expected
Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
2012-01-06 15:21:14 +00:00
Niels Thykier
ed905b99c7 Made is_valid and dontinvalidate properties in Excuse
Use the is_valid in "html"-method to determine whether to write "Valid
candidate" or not.  This avoids the occasional:

 * Valid candidate
 * Invalidated by dependency
 * Not considered

Signed-off-by: Niels Thykier <niels@thykier.net>
2012-01-06 14:58:14 +01:00
Adam D. Barratt
1d6e6617e2 Sort dependency list when outputting an excuse.
Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
2011-08-04 08:37:51 +00:00
Adam D. Barratt
7ad9eb0b35 Avoid marking more valid excuses as impossible.
Previously we could not reliably detect whether an excuse's dependency
from a source package to a binNMU was valid, as the excuse did not
contain sufficient information to determine the set of  architecture(s)
on which the dependency existed.

By modifying the representation of the dependency list in the excuse to
include an architecture list we can walk the relationships in reverse
in order to sanity-check the source -> binNMU dependency.

Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
2011-08-03 20:53:38 +00:00
Fabio Tranchitella
90768aa4e3 Improved performances sorting in a smart way the list of actions (only enabled if --compatible is not used). 2006-08-01 13:33:06 +00:00
Fabio Tranchitella
015a01c769 Fixed a typo in excuse.py 2006-06-24 21:37:45 +00:00
Fabio Tranchitella
f7b9bdc1f4 Support for fake source packages, which solved the last compatibility issues for the old britney code.
Added documentation and comments to explain the code. It is possible to generate HTML and LaTeX documentation using doxygen.
2006-06-24 17:49:43 +00:00
Fabio Tranchitella
b1603db2e4 Initial import, excuses generation almost working. 2006-06-17 13:45:56 +00:00