更新提示优化
(cherry picked from commit defb4580255f96b5aa6b81f7c7188afe304bf7b1)
This commit is contained in:
parent
966cb8cc96
commit
7d9cd6c869
@ -26,7 +26,7 @@ KLIPPER_DEFAULT_EXEC = os.path.expanduser("~/klippy-env/bin/python")
|
||||
|
||||
BASE_CONFIG: Dict[str, Dict[str, str]] = {
|
||||
"moonraker": {
|
||||
"origin": "https://github.com/arksine/moonraker.git",
|
||||
"origin": "https://github.com/CreatBotOfficail/CreatBotMoonraker.git",
|
||||
"requirements": "scripts/moonraker-requirements.txt",
|
||||
"venv_args": "-p python3",
|
||||
"system_dependencies": "scripts/system-dependencies.json",
|
||||
@ -37,8 +37,8 @@ BASE_CONFIG: Dict[str, Dict[str, str]] = {
|
||||
"managed_services": "moonraker"
|
||||
},
|
||||
"klipper": {
|
||||
"moved_origin": "https://github.com/kevinoconnor/klipper.git",
|
||||
"origin": "https://github.com/Klipper3d/klipper.git",
|
||||
"moved_origin": "https://github.com/CreatBotOfficail/CreatBotKlipper.git",
|
||||
"origin": "https://github.com/CreatBotOfficail/CreatBotKlipper.git",
|
||||
"requirements": "scripts/klippy-requirements.txt",
|
||||
"venv_args": "-p python2",
|
||||
"install_script": "scripts/install-octopi.sh",
|
||||
|
@ -46,7 +46,7 @@ class PackageDeploy(BaseDeploy):
|
||||
|
||||
async def initialize(self) -> Dict[str, Any]:
|
||||
storage = await super().initialize()
|
||||
self.available_packages = storage.get('packages', [])
|
||||
# self.available_packages = storage.get('packages', [])
|
||||
provider: BasePackageProvider
|
||||
try_fallback = True
|
||||
if self.use_packagekit:
|
||||
@ -100,7 +100,7 @@ class PackageDeploy(BaseDeploy):
|
||||
# Do not force a refresh until the server has started
|
||||
if self.server.is_running():
|
||||
await self._update_package_cache(force=True)
|
||||
self.available_packages = await self.provider.get_packages()
|
||||
# self.available_packages = await self.provider.get_packages()
|
||||
pkg_msg = "\n".join(self.available_packages)
|
||||
self.log_info(
|
||||
f"Detected {len(self.available_packages)} package updates:"
|
||||
|
@ -138,7 +138,7 @@ class ZipDeploy(AppDeploy):
|
||||
async def _detect_fallback(self) -> bool:
|
||||
# Only used by "web" app types to fallback on the previous version info
|
||||
fallback_defs = {
|
||||
"mainsail": "mainsail-crew",
|
||||
"CreatBotMainsail": "CreatBotOfficail",
|
||||
"fluidd": "fluidd-core"
|
||||
}
|
||||
for fname in ("manifest.json", "manifest.webmanifest"):
|
||||
|
Loading…
x
Reference in New Issue
Block a user