From b0ab80452769af1482e679db93abd407c608a7f6 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 13 Mar 2011 18:48:01 +0100 Subject: cnl fix --- module/database/FileDatabase.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'module/database/FileDatabase.py') diff --git a/module/database/FileDatabase.py b/module/database/FileDatabase.py index c539bcaf6..528bf666d 100644 --- a/module/database/FileDatabase.py +++ b/module/database/FileDatabase.py @@ -59,6 +59,7 @@ class FileHandler: self.jobCache = {} self.lock = RLock() #@TODO should be a Lock w/o R + #self.lock._Verbose__verbose = True self.filecount = -1 # if an invalid value is set get current value from db self.unchanged = False #determines if any changes was made since last call @@ -473,10 +474,8 @@ class FileHandler: def updateFileInfo(self, data, pid): """ updates file info (name, size, status, url)""" ids = self.db.updateLinkInfo(data) - - for fid in ids: - e = UpdateEvent("file", fid, "collector" if not self.getFile(fid).package().queue else "queue") - self.core.pullManager.addEvent(e) + e = UpdateEvent("pack", pid, "collector" if not self.getPackage(pid).queue else "queue") + self.core.pullManager.addEvent(e) def checkPackageFinished(self, pyfile): """ checks if package is finished and calls hookmanager """ -- cgit v1.2.3