From 1447c6c2f1658a8999fe887d04063b9fee7a1895 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Sun, 8 May 2022 17:14:41 +0300 Subject: [PATCH] Updated check exists repos Signed-off-by: Dimitris Zlatanidis --- slpkg/init.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/slpkg/init.py b/slpkg/init.py index 34353f52..f14994f2 100644 --- a/slpkg/init.py +++ b/slpkg/init.py @@ -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):