make age optional

This commit is contained in:
Tomas Kopecek 2020-08-18 14:50:44 +02:00
parent a753d28064
commit 00382aeb90
2 changed files with 11 additions and 6 deletions

View file

@ -1363,7 +1363,7 @@ class BuildArchTask(BaseBuildTask):
weight is scaled from a minimum of 1.5 to a maximum of 6, based on
the average duration of a build of this package.
"""
avg = self.session.getAverageBuildDuration(name)
avg = self.session.getAverageBuildDuration(name, age=6)
if not avg:
return
if avg < 0: