renaming cache_migration to netcache_migration: fixes #25

This commit is contained in:
Ploum 2023-11-08 16:45:27 +01:00
parent ac78e85d04
commit 818257bcef
3 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ import shutil
import shlex
import urllib.parse
import urllib.parse
import cache_migration
import netcache_migration
CACHE_VERSION = 1
@ -54,7 +54,7 @@ if os.path.exists(version_path):
#Now, lets upgrade the cache if needed
while current_version < CACHE_VERSION:
current_version += 1
upgrade_func = getattr(cache_migration,"upgrade_to_"+str(current_version))
upgrade_func = getattr(netcache_migration,"upgrade_to_"+str(current_version))
upgrade_func(_CACHE_PATH)
with open(version_path,"w") as f:
f.write(str(current_version))

View File

@ -54,7 +54,7 @@ path = "offpunk.py" # read __version__
[tool.hatch.build.targets.wheel]
only-include = [
"ansicat.py", "cache_migration.py", "netcache.py",
"ansicat.py", "netcache_migration.py", "netcache.py",
"offblocklist.py", "offpunk.py", "offthemes.py",
"offutils.py", "opnk.py",
]