mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 21:26:49 +00:00
scripts/pkgbuilder.py: small cleanup
This commit is contained in:
parent
aaf5f0e466
commit
893a7870c4
@ -10,7 +10,6 @@ import datetime, time
|
|||||||
import argparse
|
import argparse
|
||||||
import json
|
import json
|
||||||
import codecs
|
import codecs
|
||||||
import copy
|
|
||||||
import threading
|
import threading
|
||||||
import queue
|
import queue
|
||||||
import subprocess
|
import subprocess
|
||||||
@ -58,9 +57,9 @@ class GeneratorStalled(Exception):
|
|||||||
|
|
||||||
class Generator:
|
class Generator:
|
||||||
def __init__(self, plan):
|
def __init__(self, plan):
|
||||||
self.plan = plan
|
self.work = plan
|
||||||
|
|
||||||
self.work = copy.deepcopy(self.plan)
|
self.totalJobs = len(plan)
|
||||||
self.building = {}
|
self.building = {}
|
||||||
self.built = {}
|
self.built = {}
|
||||||
self.failed = {}
|
self.failed = {}
|
||||||
@ -155,7 +154,7 @@ class Generator:
|
|||||||
yield self.failed[name]
|
yield self.failed[name]
|
||||||
|
|
||||||
def totalJobCount(self):
|
def totalJobCount(self):
|
||||||
return len(self.plan)
|
return self.totalJobs
|
||||||
|
|
||||||
def completed(self, job):
|
def completed(self, job):
|
||||||
del self.building[job["name"]]
|
del self.building[job["name"]]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user