From acf3f11c6b6df04eb72bc9ec185eea8985aaa277 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Mon, 5 Jan 2015 13:04:55 +0200 Subject: [PATCH] fix removing duplicates --- slpkg/queue.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/slpkg/queue.py b/slpkg/queue.py index b5977914..6bc648ba 100644 --- a/slpkg/queue.py +++ b/slpkg/queue.py @@ -22,6 +22,7 @@ # along with this program. If not, see . import os +from collections import OrderedDict from downloader import Download from __metadata__ import ( @@ -96,7 +97,7 @@ class QueuePkgs(object): Add packages in queue if not exist ''' queue_list = self.packages() - pkgs = set(pkgs) + pkgs = list(OrderedDict.fromkeys(pkgs)) print("\nAdd packages in queue:\n") with open(self.queue_list, "a") as queue: for pkg in pkgs: