From 141a87a537baa322d20c54cd7632a2401d7ffe9d Mon Sep 17 00:00:00 2001
From: RaNaN <Mast3rRaNaN@hotmail.de>
Date: Tue, 10 May 2011 21:52:59 +0200
Subject: fix cli

---
 module/cli/ManageFiles.py | 4 ++--
 pyLoadCli.py              | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/module/cli/ManageFiles.py b/module/cli/ManageFiles.py
index 1d04c4c49..f0f9ec93a 100644
--- a/module/cli/ManageFiles.py
+++ b/module/cli/ManageFiles.py
@@ -30,7 +30,7 @@ class ManageFiles(Handler):
     """ possibility to manage queue/collector """
 
     def init(self):
-        self.target = 1 #queue
+        self.target = 1 #queue and collector are swapped
         self.pos = 0    #position in queue
         self.package = -1  #choosen package
         self.mode = ""   # move/delete/restart
@@ -201,4 +201,4 @@ class ManageFiles(Handler):
             return ret
 
         else:
-            return [int(x) for x in inp.split(",")]
\ No newline at end of file
+            return [int(x) for x in inp.split(",")]
diff --git a/pyLoadCli.py b/pyLoadCli.py
index 5a4a152f2..7fbfd3632 100644
--- a/pyLoadCli.py
+++ b/pyLoadCli.py
@@ -276,14 +276,14 @@ class Cli:
                 print _("Please use this syntax: add <Package name> <link> <link2> ...")
                 return
 
-            self.client.addPackage(args[0], args[1:], 1)
+            self.client.addPackage(args[0], args[1:], 0)
 
         elif command == "add_coll":
             if len(args) < 2:
                 print _("Please use this syntax: add <Package name> <link> <link2> ...")
                 return
 
-            self.client.addPackage(args[0], args[1:], 0)
+            self.client.addPackage(args[0], args[1:], 1)
 
         elif command == "del_file":
             self.client.deleteFiles([int(x) for x in args])
-- 
cgit v1.2.3