mirror of
https://forge.fsky.io/oneflux/omegafox.git
synced 2026-02-10 12:52:06 -08:00
pythonlib: Allow fetch without geoip 0.2.3
Fix fetch not checking if geoip2 is installed before trying to download the mmdb.
This commit is contained in:
parent
2d0509f3ff
commit
7985eec493
2 changed files with 4 additions and 3 deletions
|
|
@ -11,7 +11,7 @@ from typing import Optional
|
||||||
|
|
||||||
import click
|
import click
|
||||||
|
|
||||||
from .locale import download_mmdb, remove_mmdb
|
from .locale import ALLOW_GEOIP, download_mmdb, remove_mmdb
|
||||||
from .pkgman import INSTALL_DIR, CamoufoxFetcher, installed_verstr, rprint
|
from .pkgman import INSTALL_DIR, CamoufoxFetcher, installed_verstr, rprint
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -74,7 +74,8 @@ def fetch() -> None:
|
||||||
"""
|
"""
|
||||||
CamoufoxUpdate().update()
|
CamoufoxUpdate().update()
|
||||||
# Fetch the GeoIP database
|
# Fetch the GeoIP database
|
||||||
download_mmdb()
|
if ALLOW_GEOIP:
|
||||||
|
download_mmdb()
|
||||||
|
|
||||||
|
|
||||||
@cli.command(name='remove')
|
@cli.command(name='remove')
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
|
||||||
|
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "camoufox"
|
name = "camoufox"
|
||||||
version = "0.2.2"
|
version = "0.2.3"
|
||||||
description = "Wrapper around Playwright to help launch Camoufox"
|
description = "Wrapper around Playwright to help launch Camoufox"
|
||||||
authors = ["daijro <daijro.dev@gmail.com>"]
|
authors = ["daijro <daijro.dev@gmail.com>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue