fix: reject AppStream flag for flat repos instead of silently skipping

This commit is contained in:
Philip Cramer
2026-03-04 00:03:04 +01:00
committed by André Roth
parent 43d7284657
commit 2f7f726d4c
3 changed files with 11 additions and 2 deletions

View File

@@ -55,6 +55,10 @@ func aptlyMirrorEdit(cmd *commander.Command, args []string) error {
return fmt.Errorf("unable to edit: flat mirrors don't support udebs")
}
if repo.IsFlat() && repo.DownloadAppStream {
return fmt.Errorf("unable to edit: flat mirrors don't support AppStream (DEP-11) metadata")
}
if repo.Filter != "" {
_, err = query.Parse(repo.Filter)
if err != nil {