scripts/pkgbuilder.py: small cleanup

This commit is contained in:
MilhouseVH 2020-01-28 11:03:27 +00:00
parent aaf5f0e466
commit 893a7870c4

View File

@ -10,7 +10,6 @@ import datetime, time
import argparse
import json
import codecs
import copy
import threading
import queue
import subprocess
@ -58,9 +57,9 @@ class GeneratorStalled(Exception):
class Generator:
def __init__(self, plan):
self.plan = plan
self.work = plan
self.work = copy.deepcopy(self.plan)
self.totalJobs = len(plan)
self.building = {}
self.built = {}
self.failed = {}
@ -155,7 +154,7 @@ class Generator:
yield self.failed[name]
def totalJobCount(self):
return len(self.plan)
return self.totalJobs
def completed(self, job):
del self.building[job["name"]]