runspec-linux 0.4.0__tar.gz → 0.4.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.
@@ -1,5 +1,15 @@
1
1
  # runspec-linux Changelog
2
2
 
3
+ ## [0.4.1] — 2026-06-20
4
+
5
+ Give `list-upgrades` `run_as = "root"`. It refreshes the package index
6
+ (`apt-get update` / `dnf check-update` / …) by default, which needs root — but it
7
+ had no `run_as`, so over the console it ran as the SSH login user and failed with
8
+ `Could not open lock file /var/lib/apt/lists/lock — Permission denied`. It now
9
+ escalates like the rest of the package family (works password-free with the
10
+ `enable-passwordless-sudo` drop-in). `--no-refresh` still skips the index refresh
11
+ and lists from the cache (now just faster, rather than a non-root workaround).
12
+
3
13
  ## [0.4.0] — 2026-06-20
4
14
 
5
15
  Make the privileged package/power runnables escalate via runspec's `run_as`, and
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: runspec-linux
3
- Version: 0.4.0
3
+ Version: 0.4.1
4
4
  Summary: Linux system admin runnables for runspec
5
5
  Requires-Python: >=3.10
6
6
  Requires-Dist: runspec-linux-core>=0.3.0
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "runspec-linux"
7
- version = "0.4.0"
7
+ version = "0.4.1"
8
8
  requires-python = ">=3.10"
9
9
  description = "Linux system admin runnables for runspec"
10
10
  dependencies = [
@@ -324,10 +324,11 @@ serve = ["local"]
324
324
  description = "List packages with an available upgrade (refreshes the package index first)"
325
325
  autonomy = "autonomous"
326
326
  output = "json"
327
+ run_as = "root"
327
328
 
328
329
  [list-upgrades.args.no-refresh]
329
330
  type = "flag"
330
- description = "Read the cached package index instead of refreshing it first (no root needed)"
331
+ description = "Skip refreshing the package index — list from the cached index (faster)"
331
332
  default = false
332
333
 
333
334
  [upgrade-packages]
File without changes