From f3049bc976fac60d3d816ad32872f7f32575811e Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Thu, 26 May 2016 05:36:57 +0300 Subject: [PATCH] Fix code style --- slpkg/binary/install.py | 2 +- slpkg/init.py | 4 ++-- slpkg/sbo/slackbuild.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/slpkg/binary/install.py b/slpkg/binary/install.py index 373faedc..738fae22 100644 --- a/slpkg/binary/install.py +++ b/slpkg/binary/install.py @@ -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): diff --git a/slpkg/init.py b/slpkg/init.py index ca250611..5cf3e8e8 100644 --- a/slpkg/init.py +++ b/slpkg/init.py @@ -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( diff --git a/slpkg/sbo/slackbuild.py b/slpkg/sbo/slackbuild.py index bd323ee3..6d73cbb5 100644 --- a/slpkg/sbo/slackbuild.py +++ b/slpkg/sbo/slackbuild.py @@ -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))