Skip to content

Commit

Permalink
yauto.py: Fix a few lints pointed out by @silkeh
Browse files Browse the repository at this point in the history
Signed-off-by: Rune Morling <ermo@serpentos.com>
  • Loading branch information
ermo committed Apr 7, 2024
1 parent e77fa58 commit 87f0006
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions common/Scripts/yauto.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 87f0006

Please sign in to comment.