Skip to content

sweep: --repo-name is required for Pacman packages only in the input root, not in subdirectories #96

Closed

Description

@frostyard-machines

Kind: inconsistency (2 code paths handle the same rule differently). Severity: medium.

Rule: docs/specs/generators.md:158: "--repo-name is required for Pacman repositories."

Where (commit 0f1f070):

So a .pkg.tar.zst in the input root is refused without --repo-name, but the same file in a subdirectory is published as custom.db.tar.zst (or the origin's name).

Why it matters: the database name is what clients put in pacman.conf; a silent fallback name breaks clients and contradicts the spec.

Suggested fix: make hasPacmanPackages use the scanner (scanner.TypePacman), like hasDebianPackages, and add a test with a Pacman package in a subdirectory.

Size: S.

Activity

  1. added
    sweep
    on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    sweep

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions