mirror of
https://github.com/correl/melpa.git
synced 2024-11-15 03:00:14 +00:00
Tidier formulation of archive.json and recipes.json intersection
This commit is contained in:
parent
24f1c6ed4c
commit
ab0be98cb9
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
|||
archive_json = JSON.parse(File.open("../archive.json").read)
|
||||
recipe_json = JSON.parse(File.open("../recipes.json").read)
|
||||
|
||||
packages = archive_json.keys.select { |k| recipe_json.has_key?(k) }.sort.map do |pkgname|
|
||||
packages = (archive_json.keys & recipe_json.keys).sort.map do |pkgname|
|
||||
package = OpenStruct.new
|
||||
package.name = pkgname
|
||||
versions, deps, package.descr, package.pkgtype = archive_json[package.name]
|
||||
|
|
Loading…
Reference in a new issue