cleepcli 1.50.0__tar.gz → 1.50.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cleepcli-1.50.0/cleepcli.egg-info → cleepcli-1.50.1}/PKG-INFO +1 -1
- {cleepcli-1.50.0 → cleepcli-1.50.1}/bin/ccli +28 -14
- {cleepcli-1.50.0 → cleepcli-1.50.1}/bin/cleep-cli +28 -14
- {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli/config.py +20 -7
- {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli/file.py +3 -2
- {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli/version.py +1 -1
- {cleepcli-1.50.0 → cleepcli-1.50.1/cleepcli.egg-info}/PKG-INFO +1 -1
- {cleepcli-1.50.0 → cleepcli-1.50.1}/LICENSE +0 -0
- {cleepcli-1.50.0 → cleepcli-1.50.1}/MANIFEST.in +0 -0
- {cleepcli-1.50.0 → cleepcli-1.50.1}/README.md +0 -0
- {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli/__init__.py +0 -0
- {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli/check.py +0 -0
- {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli/ci.py +0 -0
- {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli/cleepapi.py +0 -0
- {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli/console.py +0 -0
- {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli/docs.py +0 -0
- {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli/git.py +0 -0
- {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli/module.py +0 -0
- {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli/package.py +0 -0
- {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli/pico.py +0 -0
- {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli/systemd/cleep-watch.service +0 -0
- {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli/test.py +0 -0
- {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli/tools.py +0 -0
- {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli/watch.py +0 -0
- {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli/watchsvc.py +0 -0
- {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli.egg-info/SOURCES.txt +0 -0
- {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli.egg-info/dependency_links.txt +0 -0
- {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli.egg-info/requires.txt +0 -0
- {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli.egg-info/top_level.txt +0 -0
- {cleepcli-1.50.0 → cleepcli-1.50.1}/pyproject.toml +0 -0
- {cleepcli-1.50.0 → cleepcli-1.50.1}/requirements.txt +0 -0
- {cleepcli-1.50.0 → cleepcli-1.50.1}/setup.cfg +0 -0
- {cleepcli-1.50.0 → cleepcli-1.50.1}/setup.py +0 -0
- {cleepcli-1.50.0 → cleepcli-1.50.1}/tests/test_check.py +0 -0
- {cleepcli-1.50.0 → cleepcli-1.50.1}/tests/test_config.py +0 -0
- {cleepcli-1.50.0 → cleepcli-1.50.1}/tests/test_console.py +0 -0
- {cleepcli-1.50.0 → cleepcli-1.50.1}/tests/test_coverage.py +0 -0
- {cleepcli-1.50.0 → cleepcli-1.50.1}/tests/test_docs_breaking.py +0 -0
- {cleepcli-1.50.0 → cleepcli-1.50.1}/tests/test_file_sync_all.py +0 -0
- {cleepcli-1.50.0 → cleepcli-1.50.1}/tests/test_module_scaffold.py +0 -0
- {cleepcli-1.50.0 → cleepcli-1.50.1}/tests/test_pico.py +0 -0
- {cleepcli-1.50.0 → cleepcli-1.50.1}/tests/test_watch.py +0 -0
- {cleepcli-1.50.0 → cleepcli-1.50.1}/tests/test_watchsvc.py +0 -0
|
@@ -323,21 +323,35 @@ def modssync(run_scripts):
|
|
|
323
323
|
logging.info('Synchronizing mandatory modules...')
|
|
324
324
|
f = File()
|
|
325
325
|
|
|
326
|
-
|
|
326
|
+
# Order: config.MANDATORY_MODULES_ORDER (update first — InstallManifest provider)
|
|
327
|
+
for module in config.MANDATORY_MODULES_ORDER:
|
|
327
328
|
if run_scripts:
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
329
|
+
if module == "update":
|
|
330
|
+
# Full sync before manifests so InstallManifest is importable
|
|
331
|
+
# (also for update's own JSON if added later).
|
|
332
|
+
res = f.module_sync(module)
|
|
333
|
+
if not res:
|
|
334
|
+
sys.exit(1)
|
|
335
|
+
res = f.module_run_phase_manifest(module, "preinst")
|
|
336
|
+
if not res:
|
|
337
|
+
sys.exit(1)
|
|
338
|
+
res = f.module_run_phase_manifest(module, "postinst")
|
|
339
|
+
if not res:
|
|
340
|
+
sys.exit(1)
|
|
341
|
+
else:
|
|
342
|
+
# Same order as package install: scripts + preinst, then files, then postinst
|
|
343
|
+
res = f.module_sync(module, backend=False, frontend=False, scripts=True)
|
|
344
|
+
if not res:
|
|
345
|
+
sys.exit(1)
|
|
346
|
+
res = f.module_run_phase_manifest(module, "preinst")
|
|
347
|
+
if not res:
|
|
348
|
+
sys.exit(1)
|
|
349
|
+
res = f.module_sync(module, backend=True, frontend=True, scripts=True)
|
|
350
|
+
if not res:
|
|
351
|
+
sys.exit(1)
|
|
352
|
+
res = f.module_run_phase_manifest(module, "postinst")
|
|
353
|
+
if not res:
|
|
354
|
+
sys.exit(1)
|
|
341
355
|
else:
|
|
342
356
|
res = f.module_sync(module)
|
|
343
357
|
if not res:
|
|
@@ -323,21 +323,35 @@ def modssync(run_scripts):
|
|
|
323
323
|
logging.info('Synchronizing mandatory modules...')
|
|
324
324
|
f = File()
|
|
325
325
|
|
|
326
|
-
|
|
326
|
+
# Order: config.MANDATORY_MODULES_ORDER (update first — InstallManifest provider)
|
|
327
|
+
for module in config.MANDATORY_MODULES_ORDER:
|
|
327
328
|
if run_scripts:
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
329
|
+
if module == "update":
|
|
330
|
+
# Full sync before manifests so InstallManifest is importable
|
|
331
|
+
# (also for update's own JSON if added later).
|
|
332
|
+
res = f.module_sync(module)
|
|
333
|
+
if not res:
|
|
334
|
+
sys.exit(1)
|
|
335
|
+
res = f.module_run_phase_manifest(module, "preinst")
|
|
336
|
+
if not res:
|
|
337
|
+
sys.exit(1)
|
|
338
|
+
res = f.module_run_phase_manifest(module, "postinst")
|
|
339
|
+
if not res:
|
|
340
|
+
sys.exit(1)
|
|
341
|
+
else:
|
|
342
|
+
# Same order as package install: scripts + preinst, then files, then postinst
|
|
343
|
+
res = f.module_sync(module, backend=False, frontend=False, scripts=True)
|
|
344
|
+
if not res:
|
|
345
|
+
sys.exit(1)
|
|
346
|
+
res = f.module_run_phase_manifest(module, "preinst")
|
|
347
|
+
if not res:
|
|
348
|
+
sys.exit(1)
|
|
349
|
+
res = f.module_sync(module, backend=True, frontend=True, scripts=True)
|
|
350
|
+
if not res:
|
|
351
|
+
sys.exit(1)
|
|
352
|
+
res = f.module_run_phase_manifest(module, "postinst")
|
|
353
|
+
if not res:
|
|
354
|
+
sys.exit(1)
|
|
341
355
|
else:
|
|
342
356
|
res = f.module_sync(module)
|
|
343
357
|
if not res:
|
|
@@ -19,15 +19,28 @@ def get_core_version_from_sources(repo_dir):
|
|
|
19
19
|
except:
|
|
20
20
|
return None
|
|
21
21
|
|
|
22
|
+
# Mandatory apps sync/install order. `update` MUST stay first: every app's
|
|
23
|
+
# preinst/postinst JSON is executed by InstallManifest (lives in update).
|
|
24
|
+
# On a device update is already installed; in CI from an empty modules tree
|
|
25
|
+
# this order is what makes declarative installs importable.
|
|
26
|
+
MANDATORY_MODULES_ORDER = (
|
|
27
|
+
"update",
|
|
28
|
+
"system",
|
|
29
|
+
"parameters",
|
|
30
|
+
"cleepbus",
|
|
31
|
+
"audio",
|
|
32
|
+
"network",
|
|
33
|
+
)
|
|
34
|
+
|
|
22
35
|
MODULES_REPO_URL = {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
36
|
+
"update": "https://github.com/CleepDevice/cleepapp-update.git",
|
|
37
|
+
"system": "https://github.com/CleepDevice/cleepapp-system.git",
|
|
38
|
+
"parameters": "https://github.com/CleepDevice/cleepapp-parameters.git",
|
|
39
|
+
"cleepbus": "https://github.com/CleepDevice/cleepapp-cleepbus.git",
|
|
40
|
+
"audio": "https://github.com/CleepDevice/cleepapp-audio.git",
|
|
41
|
+
"network": "https://github.com/CleepDevice/cleepapp-network.git",
|
|
29
42
|
}
|
|
30
|
-
DEFAULT_MODULES = list(
|
|
43
|
+
DEFAULT_MODULES = list(MANDATORY_MODULES_ORDER)
|
|
31
44
|
|
|
32
45
|
# Per-module git refs for cigetmods / core builds (in the Cleep core repo).
|
|
33
46
|
MANDATORY_MODULES_BRANCHES_FILENAME = "mandatory-modules-branches.json"
|
|
@@ -193,9 +193,10 @@ fi
|
|
|
193
193
|
MODE_INSTALL,
|
|
194
194
|
)
|
|
195
195
|
from cleep.libs.internals.cleepfilesystem import CleepFilesystem
|
|
196
|
-
except ImportError:
|
|
196
|
+
except ImportError as exc:
|
|
197
197
|
self.logger.error(
|
|
198
|
-
"Unable to import InstallManifest; is Cleep update module installed?"
|
|
198
|
+
"Unable to import InstallManifest; is Cleep update module installed? (%s)",
|
|
199
|
+
exc,
|
|
199
200
|
)
|
|
200
201
|
return False
|
|
201
202
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|