Commit cc2faa97 authored by Arthur Diniz's avatar Arthur Diniz 🇧🇷

Adds json parser script

Signed-off-by: Arthur Diniz's avatarArthur Diniz <arthurbdiniz@gmail.com>
parent 7d787538
Pipeline #52823 passed with stages
in 4 minutes and 39 seconds
This diff is collapsed.
import json
json_file = open('debian-sid-gce-amd64-dev-cloud-team-master-365.build.json')
data = json.load(json_file)
info = data['data']['info']
print('Arch: ' + info['arch'])
print('Img Type: ' + info['type'])
print('Vendor: ' + info['vendor'])
print('Verion: ' + info['version'])
print('Release: ' + info['release'])
for package in data['data']['packages']:
print('Name: ' + package['name'])
print('Version: ' + package['version'])
print('')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment