mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-17 07:48:18 +01:00
fix removing duplicates
This commit is contained in:
parent
6987dc77ee
commit
acf3f11c6b
1 changed files with 2 additions and 1 deletions
|
@ -22,6 +22,7 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
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:
|
||||
|
|
Loading…
Reference in a new issue