mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-10 22:17:36 +00:00
sourceppa: Add some more logging so we can hopefully see what is going on
This commit is contained in:
parent
ff553758a6
commit
3e1ee5a2ef
@ -93,6 +93,7 @@ class SourcePPAPolicy(BasePolicy, Rest):
|
||||
for friend in self.pkgs_by_source_ppa[sourceppa]:
|
||||
sourceppa_info[friend] = shortppa
|
||||
if not britney_excuses[friend].is_valid:
|
||||
self.log ("sourceppa: processing %s, found invalid grouped package %s, will invalidate set" % (source_name, britney_excuses[friend].name))
|
||||
accept = False
|
||||
self.pkgs_by_source_ppa[sourceppa].add(source_name)
|
||||
|
||||
@ -104,7 +105,7 @@ class SourcePPAPolicy(BasePolicy, Rest):
|
||||
friend_exc.is_valid = False
|
||||
friend_exc.addreason('source-ppa')
|
||||
friend_exc.policy_info['source-ppa'] = sourceppa_info
|
||||
self.log("Grouping %s with PPA %s" % (friend, shortppa))
|
||||
self.log ("sourceppa: ... invalidating %s due to the above (ppa: %s)" % (friend_exc.name, shortppa))
|
||||
friend_exc.addhtml("Grouped with PPA %s" % shortppa)
|
||||
return PolicyVerdict.REJECTED_PERMANENTLY
|
||||
return PolicyVerdict.PASS
|
||||
|
@ -32,6 +32,7 @@ class FakeExcuse:
|
||||
ver = ('1.0', '2.0')
|
||||
is_valid = True
|
||||
policy_info = {}
|
||||
name = "foo"
|
||||
|
||||
def addreason(self, reason):
|
||||
"""Ignore reasons."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user