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
+3
View File
@@ -116,6 +116,9 @@ func NewRemoteRepo(name string, archiveRoot string, distribution string, compone
if result.DownloadUdebs {
return nil, fmt.Errorf("debian-installer udebs aren't supported for flat repos")
}
if result.DownloadAppStream {
return nil, fmt.Errorf("AppStream (DEP-11) metadata isn't supported for flat repos")
}
result.Components = nil
}