mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-05 11:02:14 +01:00
Updated method name
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
738aaa416e
commit
de681e547c
1 changed files with 24 additions and 24 deletions
|
@ -70,15 +70,15 @@ class Initialization(Utils):
|
|||
self.slpkg_tmp_patches
|
||||
]
|
||||
|
||||
self.mkdir(paths_basic)
|
||||
self.mkdirs(paths_extra)
|
||||
self.make_dir(paths_basic)
|
||||
self.make_dirs(paths_extra)
|
||||
|
||||
def mkdir(self, path: list):
|
||||
def make_dir(self, path: list):
|
||||
for p in path:
|
||||
if not os.path.exists(p):
|
||||
os.mkdir(p)
|
||||
os.make_dir(p)
|
||||
|
||||
def mkdirs(self, path: list):
|
||||
def make_dirs(self, path: list):
|
||||
for p in path:
|
||||
if not os.path.exists(p):
|
||||
os.makedirs(p)
|
||||
|
@ -94,7 +94,7 @@ class Initialization(Utils):
|
|||
# lst_file = ""
|
||||
md5_file = "CHECKSUMS.md5"
|
||||
log_file = "ChangeLog.txt"
|
||||
self.mkdir([log, lib])
|
||||
self.make_dir([log, lib])
|
||||
PACKAGES_TXT = f"{repo}/{lib_file}"
|
||||
FILELIST_TXT = ""
|
||||
CHECKSUMS_MD5 = f"{repo}{md5_file}"
|
||||
|
@ -117,11 +117,11 @@ class Initialization(Utils):
|
|||
# lst_file = ""
|
||||
md5_file = "CHECKSUMS.md5"
|
||||
log_file = "ChangeLog.txt"
|
||||
self.mkdir([log, lib])
|
||||
self.make_dir([log, lib])
|
||||
dirs = ["core/", "extra/", "patches/"]
|
||||
for d in dirs:
|
||||
if not os.path.exists(lib + d):
|
||||
os.mkdir(lib + d)
|
||||
os.make_dir(lib + d)
|
||||
PACKAGES_TXT = mirrors(lib_file, "")
|
||||
FILELIST_TXT = ""
|
||||
CHECKSUMS_MD5 = mirrors(md5_file, "")
|
||||
|
@ -159,7 +159,7 @@ class Initialization(Utils):
|
|||
# lst_file = ""
|
||||
# md5_file = ""
|
||||
log_file = "ChangeLog.txt"
|
||||
self.mkdir([log, lib])
|
||||
self.make_dir([log, lib])
|
||||
SLACKBUILDS_TXT = f"{repo}{slack_ver()}/{lib_file}"
|
||||
FILELIST_TXT = ""
|
||||
CHECKSUMS_MD5 = ""
|
||||
|
@ -182,7 +182,7 @@ class Initialization(Utils):
|
|||
# lst_file = ""
|
||||
md5_file = "CHECKSUMS.md5"
|
||||
log_file = "ChangeLog.txt"
|
||||
self.mkdir([log, lib])
|
||||
self.make_dir([log, lib])
|
||||
PACKAGES_TXT = f"{repo}{slack_ver()}/{lib_file}"
|
||||
FILELIST_TXT = ""
|
||||
CHECKSUMS_MD5 = f"{repo}{slack_ver()}/{md5_file}"
|
||||
|
@ -209,7 +209,7 @@ class Initialization(Utils):
|
|||
# lst_file = ""
|
||||
md5_file = "CHECKSUMS.md5"
|
||||
log_file = "ChangeLog.txt"
|
||||
self.mkdir([log, lib])
|
||||
self.make_dir([log, lib])
|
||||
if arch == "x86_64":
|
||||
ar = arch
|
||||
if self.meta.slack_rel == "current":
|
||||
|
@ -239,7 +239,7 @@ class Initialization(Utils):
|
|||
# lst_file = ""
|
||||
md5_file = "CHECKSUMS.md5"
|
||||
log_file = "ChangeLog.txt"
|
||||
self.mkdir([log, lib])
|
||||
self.make_dir([log, lib])
|
||||
if arch == "x86_64":
|
||||
ar = "64"
|
||||
PACKAGES_TXT = f"{repo}slackware{ar}-{slack_ver()}/{lib_file}"
|
||||
|
@ -266,7 +266,7 @@ class Initialization(Utils):
|
|||
# lst_file = ""
|
||||
md5_file = "CHECKSUMS.md5"
|
||||
log_file = "ChangeLog.txt"
|
||||
self.mkdir([log, lib])
|
||||
self.make_dir([log, lib])
|
||||
PACKAGES_TXT = f"{repo}{lib_file}"
|
||||
FILELIST_TXT = ""
|
||||
CHECKSUMS_MD5 = f"{repo}{md5_file}"
|
||||
|
@ -293,7 +293,7 @@ class Initialization(Utils):
|
|||
# lst_file = ""
|
||||
md5_file = "CHECKSUMS.md5"
|
||||
log_file = "ChangeLog.txt"
|
||||
self.mkdir([log, lib])
|
||||
self.make_dir([log, lib])
|
||||
if arch == "x86_64":
|
||||
ar = f"{ver}-x86_64"
|
||||
if self.meta.slack_rel == "current":
|
||||
|
@ -323,7 +323,7 @@ class Initialization(Utils):
|
|||
# lst_file = ""
|
||||
md5_file = "CHECKSUMS.md5"
|
||||
log_file = "ChangeLog.txt"
|
||||
self.mkdir([log, lib])
|
||||
self.make_dir([log, lib])
|
||||
PACKAGES_TXT = f"{repo}{lib_file}"
|
||||
FILELIST_TXT = ""
|
||||
CHECKSUMS_MD5 = f"{repo}{md5_file}"
|
||||
|
@ -348,7 +348,7 @@ class Initialization(Utils):
|
|||
# lst_file = ""
|
||||
md5_file = "CHECKSUMS.md5"
|
||||
log_file = "ChangeLog.txt"
|
||||
self.mkdir([log, lib])
|
||||
self.make_dir([log, lib])
|
||||
if self.meta.slack_rel == "current":
|
||||
ver = self.meta.slack_rel
|
||||
PACKAGES_TXT = f"{repo}{ver}/{lib_file}"
|
||||
|
@ -376,7 +376,7 @@ class Initialization(Utils):
|
|||
# lst_file = ""
|
||||
md5_file = "CHECKSUMS.md5"
|
||||
log_file = "ChangeLog.txt"
|
||||
self.mkdir([log, lib])
|
||||
self.make_dir([log, lib])
|
||||
if arch == "x86_64":
|
||||
ar = "64"
|
||||
version = self.meta.slacke_sub_repo[1:-1]
|
||||
|
@ -408,7 +408,7 @@ class Initialization(Utils):
|
|||
# lst_file = ""
|
||||
md5_file = "CHECKSUMS.md5"
|
||||
log_file = "ChangeLog.txt"
|
||||
self.mkdir([log, lib])
|
||||
self.make_dir([log, lib])
|
||||
if arch == "x86_64":
|
||||
ar = "x86_64"
|
||||
PACKAGES_TXT = f"{repo}{ar}/{slack_ver()}/{lib_file}"
|
||||
|
@ -436,7 +436,7 @@ class Initialization(Utils):
|
|||
# lst_file = ""
|
||||
md5_file = "CHECKSUMS.md5"
|
||||
log_file = "ChangeLog.txt"
|
||||
self.mkdir([log, lib])
|
||||
self.make_dir([log, lib])
|
||||
if arch == "x86_64":
|
||||
ar = "x86_64"
|
||||
PACKAGES_TXT = f"{repo}{ar}/current/{lib_file}"
|
||||
|
@ -462,7 +462,7 @@ class Initialization(Utils):
|
|||
# lst_file = ""
|
||||
md5_file = "CHECKSUMS.md5"
|
||||
log_file = "ChangeLog.txt"
|
||||
self.mkdir([log, lib])
|
||||
self.make_dir([log, lib])
|
||||
PACKAGES_TXT = f"{repo}{lib_file}"
|
||||
FILELIST_TXT = ""
|
||||
CHECKSUMS_MD5 = f"{repo}{md5_file}"
|
||||
|
@ -489,7 +489,7 @@ class Initialization(Utils):
|
|||
# lst_file = ""
|
||||
md5_file = "CHECKSUMS.md5"
|
||||
log_file = "ChangeLog.txt"
|
||||
self.mkdir([log, lib])
|
||||
self.make_dir([log, lib])
|
||||
if arch == "x86_64":
|
||||
ar = "x86_64"
|
||||
version = self.meta.msb_sub_repo[1:-1]
|
||||
|
@ -521,7 +521,7 @@ class Initialization(Utils):
|
|||
# lst_file = ""
|
||||
md5_file = "CHECKSUMS.md5"
|
||||
log_file = "ChangeLog.txt"
|
||||
self.mkdir([log, lib])
|
||||
self.make_dir([log, lib])
|
||||
if arch == "x86_64":
|
||||
ar = "x86_64"
|
||||
if self.meta.slack_rel == "current":
|
||||
|
@ -552,7 +552,7 @@ class Initialization(Utils):
|
|||
# lst_file = ""
|
||||
md5_file = "CHECKSUMS.md5"
|
||||
log_file = "ChangeLog.txt"
|
||||
self.mkdir([log, lib])
|
||||
self.make_dir([log, lib])
|
||||
if arch == "x86_64":
|
||||
ar = "64"
|
||||
PACKAGES_TXT = f"{repo}{nickname}{ar}-{slack_ver()}/{lib_file}"
|
||||
|
@ -580,7 +580,7 @@ class Initialization(Utils):
|
|||
# lst_file = ""
|
||||
md5_file = "CHECKSUMS.md5"
|
||||
log_file = "ChangeLog.txt"
|
||||
self.mkdir([log, lib])
|
||||
self.make_dir([log, lib])
|
||||
if arch == "x86_64":
|
||||
ar = "64"
|
||||
version = self.meta.mles_sub_repo[1:-1]
|
||||
|
|
Loading…
Reference in a new issue