Fix Repology.json (#9739)

This commit is contained in:
Maximilian Downey Twiss
2024-05-01 19:17:10 +10:00
committed by GitHub
parent 1a601b319c
commit 9894fd4d27
3 changed files with 17092 additions and 12 deletions

View File

@@ -9,6 +9,9 @@ require_relative '../lib/package'
output = []
Dir.glob('../packages/*.rb').each do |filename|
# docbook_xml runs code on loading that does not work when chromebrew is not installed.
# It shouldn't be doing that, but work around it for now.
next if filename.include?('docbook')
pkg = Package.load_package(filename)
next if pkg.is_fake?
output << { name: File.basename(filename, '.rb').gsub('_', '-'), description: pkg.description, homepage: pkg.homepage, version: pkg.version, license: pkg.license, compatibility: pkg.compatibility }