repoman.utils#

Utility helpers: current Ubuntu codename and repo-attention detection.

get_current_codename()[source]#

Return the running Ubuntu codename, e.g. ‘noble’.

Return type:

str

repos_needing_attention(repos)[source]#
Return repos that need review. Catches two cases:
  1. Disabled repos (Enabled: no).

  2. Enabled repos pointing at a stale codename — these appear healthy but silently 404 on every apt update. This is the case most tools miss.

Excludes suite-agnostic repos (‘stable’, ‘main’, anything non-alphabetic like ‘focal-security’) — those don’t need a codename update.

Parameters:

repos (list[Repository])

Return type:

list[Repository]