mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-27 09:58:10 +01:00
Updated arguments
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
7e58adb490
commit
3ab06176ca
2 changed files with 3 additions and 3 deletions
|
@ -70,11 +70,11 @@ class Utils:
|
|||
if line.startswith("PACKAGE NAME:"):
|
||||
yield split_package(line[14:].strip())[0]
|
||||
|
||||
def check_downloaded(self, path, maybe_downloaded):
|
||||
def check_downloaded(self, path, downloaded):
|
||||
"""Check if files downloaded and return downloaded
|
||||
packages
|
||||
"""
|
||||
for pkg in maybe_downloaded:
|
||||
for pkg in downloaded:
|
||||
if os.path.isfile(f"{path}{pkg}"):
|
||||
yield pkg
|
||||
|
||||
|
|
|
@ -10,4 +10,4 @@ def test_dimensional_list():
|
|||
def test_remove_dbs():
|
||||
lists = [1, 2, 3, 3, 4, 5, 2, 1]
|
||||
utils = Utils()
|
||||
assert [1, 2, 3, 4, 5] == utils.remove_dbs(lists)
|
||||
assert [1, 2, 3, 4, 5] == utils.remove_dbs(lists)
|
Loading…
Reference in a new issue