add remove reason when package not in unstable

This commit is contained in:
Ivo De Decker 2013-12-11 21:21:13 +01:00 committed by Niels Thykier
parent 369f01e8d2
commit e109b446df

View File

@ -1040,6 +1040,7 @@ class Britney(object):
# otherwise, add a new excuse for its removal and return True
src = self.sources['testing'][pkg]
excuse = Excuse("-" + pkg)
excuse.addreason("remove")
excuse.set_vers(src[VERSION], None)
src[MAINTAINER] and excuse.set_maint(src[MAINTAINER].strip())
src[SECTION] and excuse.set_section(src[SECTION].strip())