MCPcopy
hub / github.com/pyload/pyload / checkPackageFinished

Method checkPackageFinished

module/database/FileDatabase.py:525–533  ·  view source on GitHub ↗

checks if package is finished and calls hookmanager

(self, pyfile)

Source from the content-addressed store, hash-verified

523 self.core.pullManager.addEvent(e)
524
525 def checkPackageFinished(self, pyfile):
526 """ checks if package is finished and calls hookmanager """
527
528 ids = self.db.getUnfinished(pyfile.packageid)
529 if not ids or (pyfile.id in ids and len(ids) == 1):
530 if not pyfile.package().setFinished:
531 self.core.log.info(_("Package finished: %s") % pyfile.package().name)
532 self.core.hookManager.packageFinished(pyfile.package())
533 pyfile.package().setFinished = True
534
535
536 def reCheckPackage(self, pid):

Callers 1

runMethod · 0.80

Calls 4

getUnfinishedMethod · 0.80
packageMethod · 0.80
_Function · 0.50
packageFinishedMethod · 0.45

Tested by

no test coverage detected