ref: move legacy field backport from classifypkg to ExportLegacy; add .apk/.AppImage formats

- Remove LegacyBackport from classifypkg and webicached; canonical values
  now flow through storage untouched
- Add legacyFieldBackport() in storage/legacy.go, called only at export time
  (go: armv6→arm, ffmpeg windows: .gz/.empty→.exe)
- ExportLegacy now takes pkg name and returns LegacyDropStats (variants + formats dropped)
- fsstore.Commit logs dropped assets so filtering is visible
- Add FormatAPK (.apk) and FormatAppImage (.AppImage) to buildmeta and classify
  so those files are properly classified and then correctly dropped from legacy export
  rather than passing through as empty-format
This commit is contained in:
AJ ONeal
2026-03-11 14:41:30 -06:00
parent afa65bbf87
commit b236c8ac6b
8 changed files with 68 additions and 62 deletions

View File

@@ -329,8 +329,6 @@ func (wc *WebiCache) refreshPackage(ctx context.Context, pkg pkgConf) error {
if err != nil {
return fmt.Errorf("classify: %w", err)
}
// Legacy backport: translate canonical values to what Node.js expects.
classifypkg.LegacyBackport(name, assets)
classifyDur := time.Since(classifyStart)
// Step 3: Write to fsstore.