MCPcopy
hub / github.com/pyload/pyload / updateLink

Method updateLink

module/database/FileDatabase.py:229–234  ·  view source on GitHub ↗

updates link

(self, pyfile)

Source from the content-addressed store, hash-verified

227
228 #----------------------------------------------------------------------
229 def updateLink(self, pyfile):
230 """updates link"""
231 self.db.updateLink(pyfile)
232
233 e = UpdateEvent("file", pyfile.id, "collector" if not pyfile.package().queue else "queue")
234 self.core.pullManager.addEvent(e)
235
236 #----------------------------------------------------------------------
237 def updatePackage(self, pypack):

Callers 1

syncMethod · 0.45

Calls 3

UpdateEventClass · 0.90
packageMethod · 0.80
addEventMethod · 0.45

Tested by

no test coverage detected