Skip to content

Add support for snap#2

Merged
cosmix merged 7 commits intomainfrom
feat-snap-support
Jan 20, 2026
Merged

Add support for snap#2
cosmix merged 7 commits intomainfrom
feat-snap-support

Conversation

@cosmix
Copy link
Owner

@cosmix cosmix commented Jan 20, 2026

No description provided.

Implement SnapUpdater class following FlatpakUpdater pattern:
- check_available(): verify snap command exists
- check_updates(): parse snap refresh --list output
- run_update(): execute snap refresh with progress tracking
- Filter system snaps (snapd, core*, gnome-*, gtk-common-themes)
- Progress reporting: 0-10% checking, 10-100% installing

Also adds comprehensive tests for SnapUpdater and test fixtures.
- Import SnapUpdater and instantiate in SysUpdateCLI.__init__
- Add snap availability check and concurrent execution in _run_updates()
- Add _run_snap() method for running Snap updates with progress
- Update _print_summary() to include snap packages with version table
- Update tests to handle new snap_packages parameter
…nload

- Parse snap name from progress lines to show current package instead of
  generic "downloading..." text, consistent with APT and Flatpak behavior
- Add last_progress_report guard to prevent progress bar from moving
  backwards when multiple snaps download with interleaved percentages
- Update progress callback to display message field during CHECKING phase
  instead of always showing generic "checking..." text
- Add progress report after snap store query completes showing count of
  available updates, so the UI doesn't appear stuck during slow queries
@cosmix cosmix merged commit ccd71ba into main Jan 20, 2026
3 checks passed
@cosmix cosmix deleted the feat-snap-support branch January 20, 2026 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant