mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Fix code style
This commit is contained in:
parent
b90ef30758
commit
f3049bc976
3 changed files with 4 additions and 4 deletions
|
@ -130,7 +130,7 @@ class BinaryInstall(object):
|
|||
for inst, dwn in zip(self.dep_install + self.install,
|
||||
self.dep_dwn + self.dwn):
|
||||
if (self.meta.not_downgrade == "on" and
|
||||
self.not_downgrade(inst) == True):
|
||||
self.not_downgrade(inst) is True):
|
||||
continue
|
||||
if (not os.path.isfile(self.meta.pkg_path + inst[:-4]) or
|
||||
"--download-only" in self.flag):
|
||||
|
|
|
@ -684,7 +684,7 @@ class Update(object):
|
|||
if only:
|
||||
enabled = only
|
||||
for repo in enabled:
|
||||
if check_for_local_repos(repo) == True:
|
||||
if check_for_local_repos(repo) is True:
|
||||
continue
|
||||
sys.stdout.write("{0}Check repository [{1}{2}{3}] ... "
|
||||
"{4}".format(
|
||||
|
@ -713,7 +713,7 @@ def check_exists_repositories():
|
|||
pkg_list = "PACKAGES.TXT"
|
||||
if repo == "sbo":
|
||||
pkg_list = "SLACKBUILDS.TXT"
|
||||
if check_for_local_repos(repo) == True:
|
||||
if check_for_local_repos(repo) is True:
|
||||
pkg_list = "PACKAGES.TXT"
|
||||
continue
|
||||
if not os.path.isfile("{0}{1}{2}".format(
|
||||
|
|
|
@ -311,7 +311,7 @@ class SBoInstall(object):
|
|||
os.chdir(self.build_folder)
|
||||
for prgnam in slackbuilds:
|
||||
if (self.meta.not_downgrade == "on" and
|
||||
self.not_downgrade(prgnam) == True):
|
||||
self.not_downgrade(prgnam) is True):
|
||||
continue
|
||||
pkg = "-".join(prgnam.split("-")[:-1])
|
||||
installed = "".join(find_package(prgnam, self.meta.pkg_path))
|
||||
|
|
Loading…
Add table
Reference in a new issue