[elbe-devel] [PATCH 16/28] pylint: fix wrong indent levels

Torben Hohn torben.hohn at linutronix.de
Wed Aug 22 11:29:10 CEST 2018


pylint complains about wrong indents.

fix them

Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
 elbepack/commands/adjustpkgs.py |  2 +-
 elbepack/commands/pkgdiff.py    |  4 ++--
 elbepack/dump.py                | 20 ++++++++++----------
 3 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/elbepack/commands/adjustpkgs.py b/elbepack/commands/adjustpkgs.py
index 55a53033..f7dbdd0b 100644
--- a/elbepack/commands/adjustpkgs.py
+++ b/elbepack/commands/adjustpkgs.py
@@ -44,7 +44,7 @@ class adjpkg(object):
                    p.name in pkglist or \
                    p.installed.priority == "important" or \
                    p.installed.priority == "required":
-                        continue
+                    continue
                 print("MARK REMOVE %s" % p.name)
                 p.mark_delete(auto_fix=False, purge=True)
 
diff --git a/elbepack/commands/pkgdiff.py b/elbepack/commands/pkgdiff.py
index 935265a0..38b13112 100644
--- a/elbepack/commands/pkgdiff.py
+++ b/elbepack/commands/pkgdiff.py
@@ -61,7 +61,7 @@ def run_command(argv):
             if p.current_ver and not \
                gc[p.name].is_auto_installed and not \
                p.essential:
-                    gen_pkgs[p.name] = p.current_ver
+                gen_pkgs[p.name] = p.current_ver
         else:
             if p.current_ver and not p.essential:
                 gen_pkgs[p.name] = p.current_ver
@@ -79,7 +79,7 @@ def run_command(argv):
             if p.current_ver and not \
                fc[p.name].is_auto_installed and not \
                p.essential:
-                    fix_pkgs[p.name] = p.current_ver
+                fix_pkgs[p.name] = p.current_ver
         else:
             if p.current_ver and not p.essential:
                 fix_pkgs[p.name] = p.current_ver
diff --git a/elbepack/dump.py b/elbepack/dump.py
index d9db77ba..cce60315 100644
--- a/elbepack/dump.py
+++ b/elbepack/dump.py
@@ -311,16 +311,16 @@ def elbe_report(xml, buildenv, cache, reportname, errorname, targetfs):
     for fpath in list(mt_index_postarch.keys()):
         if fpath not in mt_index or \
                 mt_index_postarch[fpath] != mt_index[fpath]:
-                    if fpath not in mt_index_post_fine:
-                        elog.printo(
-                                "- archive file %s deleted in finetuning" %
-                                fpath)
-                        errors += 1
-                    elif mt_index_post_fine[fpath] != mt_index_postarch[fpath]:
-                        elog.printo(
-                                "- archive file %s modified in finetuning" %
-                                fpath)
-                        errors += 1
+            if fpath not in mt_index_post_fine:
+                elog.printo(
+                        "- archive file %s deleted in finetuning" %
+                        fpath)
+                errors += 1
+            elif mt_index_post_fine[fpath] != mt_index_postarch[fpath]:
+                elog.printo(
+                        "- archive file %s modified in finetuning" %
+                        fpath)
+                errors += 1
 
     if errors == 0:
         elog.printo("No Errors found")
-- 
2.11.0




More information about the elbe-devel mailing list