Joerg Jaspert pushed to branch master at Debian FTP Team / dak
Commits:
-
436db756
by Joerg Jaspert at 2024-10-30T23:56:25+01:00
1 changed file:
Changes:
... | ... | @@ -576,6 +576,11 @@ def main(): |
576 | 576 | utils.warn("Directory provided so ignoring files given on command line")
|
577 | 577 | |
578 | 578 | changes_files = utils.get_changes_files(cnf["Dinstall::Options::Directory"])
|
579 | + # FIXME: quick hack to NOT have p-u run for ages, if some binnmu fun uploads thousands of changes
|
|
580 | + # might want to make the number configurable at some point
|
|
581 | + if len(changes_files) > 200:
|
|
582 | + import numpy
|
|
583 | + changes_files = numpy.random.choice(changes_files, 200, False)
|
|
579 | 584 | Logger.log(["Using changes files from directory", cnf["Dinstall::Options::Directory"], len(changes_files)])
|
580 | 585 | elif not len(changes_files) > 0:
|
581 | 586 | utils.fubar("No changes files given and no directory specified")
|