diff --git a/slpkg/init.py b/slpkg/init.py index de437b03..e1b09400 100644 --- a/slpkg/init.py +++ b/slpkg/init.py @@ -117,11 +117,11 @@ class Initialization(Utils): # lst_file = "" md5_file = "CHECKSUMS.md5" log_file = "ChangeLog.txt" - self.make_dir([log, lib]) dirs = ["core/", "extra/", "patches/"] - for d in dirs: - if not os.path.exists(lib + d): - os.make_dir(lib + d) + self.make_dir([log, lib]) + self.make_dir([f"{lib}{dirs[0]}", + f"{lib}{dirs[1]}", + f"{lib}{dirs[2]}"]) PACKAGES_TXT = mirrors(lib_file, "") FILELIST_TXT = "" CHECKSUMS_MD5 = mirrors(md5_file, "") diff --git a/slpkg/slack/slackware_repo.py b/slpkg/slack/slackware_repo.py index 4c27820b..639e3c94 100644 --- a/slpkg/slack/slackware_repo.py +++ b/slpkg/slack/slackware_repo.py @@ -39,4 +39,4 @@ def slackware_repository(): for pkg in slack_repo[0]: names.append(split_package(pkg)[0]) packages.append(pkg[:-4]) - return packages, names \ No newline at end of file + return packages, names