mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
fix: reject AppStream flag for flat repos instead of silently skipping
This commit is contained in:
committed by
André Roth
parent
43d7284657
commit
2f7f726d4c
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user