apps: Add package status check before updating system apps
Description
Check updatable status before adding it to the list.
Screenshots
Technical details
Tests
Issues
https://gitlab.e.foundation/e/os/backlog/-/issues/2834
10 commandments of code reviews
Summary by CodeRabbit
Release Notes
-
New Features
- Enhanced error handling for system updates.
- Updated logic for determining application installation status.
- Introduced a new user type check for app installations.
-
Bug Fixes
- Simplified logic for checking if applications are updatable by focusing solely on version codes.
-
Documentation
- Updated method signatures to reflect changes in parameters and return types.
-
Tests
- Adjusted test cases to align with the updated method signatures and logic.
Edited by CodeRabbitAI