Sync a declarative package list with the pacman package manager
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

1.1 KiB

ADDED Requirements

Requirement: Handle AUR packages with fallback and upgrade

The system SHALL first attempt to install packages via pacman, then fall back to AUR for packages not found in repos, and upgrade AUR packages to latest versions.

Scenario: Try pacman first

  • WHEN package is in pacman repositories
  • THEN install via pacman -Syu

Scenario: Fall back to AUR

  • WHEN package is not in pacman repositories but is in AUR
  • THEN batch query AUR via info endpoint (multiple packages in single request)
  • AND build and install with makepkg -si

Scenario: Upgrade AUR packages

  • WHEN AUR package is already installed but outdated
  • THEN rebuild and reinstall with makepkg to get latest version

Scenario: Report error for missing packages

  • WHEN package is not in pacman repositories or AUR
  • THEN print error to stderr with package name
  • AND exit with code 1

Scenario: AUR build failure

  • WHEN makepkg fails to build package
  • THEN print makepkg error to stderr
  • AND exit with code 1