From cd3b937469b092f7d8e8c7b84f5bb9e5411c2b44 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Mon, 21 Oct 2024 03:21:48 -0700 Subject: [PATCH] fix syntax error --- archivebox/main.py | 3 +-- pyproject.toml | 2 +- uv.lock | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/archivebox/main.py b/archivebox/main.py index 0b904734..7f196a3c 100755 --- a/archivebox/main.py +++ b/archivebox/main.py @@ -1134,8 +1134,7 @@ def install(out_dir: Path=DATA_DIR, binproviders: Optional[List[str]]=None, bina sys.stderr.write("\033[00m\n") # reset else: binary.load_or_install(fresh=True, dry_run=dry_run).model_dump(exclude={'overrides', 'bin_dir', 'hook_type'}) - if IS_ROOT: - LIB_DIR = + if IS_ROOT and LIB_DIR: with SudoPermission(uid=0): if ARCHIVEBOX_USER == 0: os.system(f'chmod -R 777 "{LIB_DIR.resolve()}"') diff --git a/pyproject.toml b/pyproject.toml index ecb13bbc..9d64a3b1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "archivebox" -version = "0.8.5rc48" +version = "0.8.5rc49" requires-python = ">=3.10" description = "Self-hosted internet archiving solution." authors = [{name = "Nick Sweeting", email = "pyproject.toml@archivebox.io"}] diff --git a/uv.lock b/uv.lock index 362eb3ac..4ca84d31 100644 --- a/uv.lock +++ b/uv.lock @@ -41,7 +41,7 @@ wheels = [ [[package]] name = "archivebox" -version = "0.8.5rc47" +version = "0.8.5rc48" source = { editable = "." } dependencies = [ { name = "atomicwrites" },