mirror of
https://github.com/1andrevich/re-sputnik.git
synced 2026-08-21 22:55:50 +00:00
When a router's package index is empty (e.g., fresh boot, tmpfs), opkg cannot resolve dependencies like ucode-mod-digest, causing install failures. opkg then misreports this as an architecture mismatch (issue #1). This commit implements a two-part fix: 1. Refresh the package index before installing the local .ipk file (once per run, best-effort to avoid aborting on flaky feeds). apk is left alone as it auto-refreshes on write. 2. Improve error messages by parsing opkg's output to report the actual missing dependency instead of blindly tailing the last 200 characters (which surfaced opkg's misleading last line). Kernel module blockers also get the firmware diagnosis previously only shown at the kmod step. Adds comprehensive tests for the refresh latch, error reporting, and integration with the update path. |
||
|---|---|---|
| .. | ||
| test_app_install_deps.py | ||
| test_client_auth.py | ||
| test_pubkey_relabel.py | ||