Signed-off-by: Ansgar Burchardt <ansgar@debian.org>
utils.size_type(int(summarystats.accept_bytes)))
Logger.log(["total", summarystats.accept_count, summarystats.accept_bytes])
+ if summarystats.reject_count:
+ sets = "set"
+ if summarystats.reject_count > 1:
+ sets = "sets"
+ print "Rejected %d package %s." % (summarystats.reject_count, sets)
+ Logger.log(["rejected", summarystats.reject_count])
+
byebye()
if not Options["No-Action"]:
if self.logger:
self.logger.log(["rejected", self.pkg.changes_file])
+ stats = SummaryStats()
+ stats.reject_count += 1
return 0
################################################################################
if not getattr(self, 'initialised', False):
self.initialised = True
self.reset_accept()
+ self.reset_reject()
def reset_accept(self):
self.accept_count = 0
self.accept_bytes = 0
+ def reset_reject(self):
+ self.reject_count = 0