mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-05 11:02:14 +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):
|
||||
"""Checking if repositories exists by PACKAGES.TXT file
|
||||
"""
|
||||
pkg_list = "PACKAGES.TXT"
|
||||
pkg_list = ""
|
||||
if repo == "sbo":
|
||||
pkg_list = "SLACKBUILDS.TXT"
|
||||
if check_for_local_repos(repo) is True:
|
||||
pkg_list = "PACKAGES.TXT"
|
||||
return ""
|
||||
if not os.path.isfile(f"{_meta_.lib_path}{repo}_repo/{pkg_list}"):
|
||||
return repo
|
||||
return ""
|
||||
|
||||
|
||||
def check_for_local_repos(repo):
|
||||
|
|
Loading…
Reference in a new issue