From 87f000663c764485999e72b41ff547185a945649 Mon Sep 17 00:00:00 2001 From: Rune Morling Date: Sun, 7 Apr 2024 21:48:27 +0200 Subject: [PATCH] yauto.py: Fix a few lints pointed out by @silkeh Signed-off-by: Rune Morling --- common/Scripts/yauto.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/common/Scripts/yauto.py b/common/Scripts/yauto.py index 1f1b75dc974..64438629832 100755 --- a/common/Scripts/yauto.py +++ b/common/Scripts/yauto.py @@ -124,7 +124,7 @@ def examine_source(self): # Check for certain files.. for root, dirs, files in os.walk(os.getcwd()): - depth = root[len(path) + len(os.path.sep) :].count(os.path.sep) + depth = root[len(path) + len(os.path.sep):].count(os.path.sep) if depth == 3: print("bailing") # We're currently two directories in, so all subdirs have depth 3 @@ -335,9 +335,10 @@ def create_yaml(self): setup = "%perl_setup" build = "%perl_build" install = "%perl_install" - sample_actions = os.path.join( - self.template_dir, "actions.perlmodules.sample.py" - ) + # Unused, but left in for historical purposes + #sample_actions = os.path.join( + # self.template_dir, "actions.perlmodules.sample.py" + #) elif self.compile_type == CABAL: setup = "%cabal_configure" build = "%cabal_build"