summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpyLoadCore.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index 3a64f9802..01be0e185 100755
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -66,6 +66,8 @@ from module.FileDatabase import PyFile
from module.Scheduler import Scheduler
from module.JsEngine import JsEngine
+from module.PullEvents import UpdateEvent
+
from codecs import getwriter
if os.name == "nt":
enc = "cp850"
@@ -711,11 +713,15 @@ class ServerMethods():
def add_files(self, pid, links):
pid = int(pid)
+ p = self.core.files.getPackage()
self.core.files.addLinks(links, pid)
self.core.log.info(_("Added %(count)d links to package #%(package)d ") % {"count": len(links), "package": pid})
self.core.files.save()
+ e = UpdateEvent("pack", pid, "collector" if not p.queue else "queue")
+ self.core.pullManager.addEvent(e)
+
return pid
def push_package_to_queue(self, id):