Compare commits

...

2 Commits

Author SHA1 Message Date
6eaf0a795d fix poetry install in ubuntu 24.04
Some checks failed
Python Linters / pylint (push) Failing after 48s
Python Linters / formatting (push) Failing after 50s
REUSE Compliance / reuse (push) Successful in 13s
Selftests / test-build-install (push) Failing after 11s
Python Linters / mypy (push) Failing after 48s
Selftests / test-sync (push) Failing after 35s
2025-01-12 12:25:44 +01:00
576ef895e0 make log file destination configurable
Some checks failed
Python Linters / pylint (push) Failing after 57s
Python Linters / formatting (push) Failing after 55s
REUSE Compliance / reuse (push) Successful in 18s
Python Linters / mypy (push) Failing after 11s
Selftests / test-build-install (push) Failing after 9s
Selftests / test-sync (push) Failing after 10s
2025-01-12 12:11:58 +01:00
2 changed files with 13 additions and 2 deletions

View File

@@ -12,8 +12,10 @@ inputs:
runs:
using: "composite"
steps:
- name: Set PATH
run: export PATH=$PATH:~/.local/bin
- name: Install poetry
run: pip install poetry
run: pipx install poetry
- name: Install poetry package
run: poetry install --no-interaction ${{ inputs.poetry_install_args }}
shell: bash

View File

@@ -27,6 +27,12 @@ from ._seafile import (
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("-c", "--configdir", required=True, help="The config directory")
parser.add_argument(
"-l",
"--logfile",
required=True,
help="The path to the logfile. Default: <configdir>/seafile_mirror.log",
)
parser.add_argument(
"-d",
"--dry",
@@ -59,7 +65,10 @@ def main(): # pylint: disable=too-many-locals, too-many-statements
configdir = args.configdir.rstrip("/") + "/"
configfile = configdir + "seafile_mirror.conf.yaml"
cachefile = configdir + ".seafile_mirror.db.json"
logfile = configdir + "seafile_mirror.log"
if args.logfile:
logfile = args.logfile
else:
logfile = configdir + "seafile_mirror.log"
# Logging
log = logging.getLogger()