mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-07 17:24:57 +01:00
Updated check exists repos
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
3dc08566eb
commit
1447c6c2f1
1 changed files with 1 additions and 3 deletions
|
@ -794,15 +794,13 @@ class Update:
|
||||||
def check_exists_repositories(repo):
|
def check_exists_repositories(repo):
|
||||||
"""Checking if repositories exists by PACKAGES.TXT file
|
"""Checking if repositories exists by PACKAGES.TXT file
|
||||||
"""
|
"""
|
||||||
pkg_list = "PACKAGES.TXT"
|
pkg_list = ""
|
||||||
if repo == "sbo":
|
if repo == "sbo":
|
||||||
pkg_list = "SLACKBUILDS.TXT"
|
pkg_list = "SLACKBUILDS.TXT"
|
||||||
if check_for_local_repos(repo) is True:
|
if check_for_local_repos(repo) is True:
|
||||||
pkg_list = "PACKAGES.TXT"
|
pkg_list = "PACKAGES.TXT"
|
||||||
return ""
|
|
||||||
if not os.path.isfile(f"{_meta_.lib_path}{repo}_repo/{pkg_list}"):
|
if not os.path.isfile(f"{_meta_.lib_path}{repo}_repo/{pkg_list}"):
|
||||||
return repo
|
return repo
|
||||||
return ""
|
|
||||||
|
|
||||||
|
|
||||||
def check_for_local_repos(repo):
|
def check_for_local_repos(repo):
|
||||||
|
|
Loading…
Reference in a new issue