Skip to content

Instantly share code, notes, and snippets.

View YokoZar's full-sized avatar

Scott Ritchie YokoZar

View GitHub Profile
@YokoZar
YokoZar / parse.py
Last active August 29, 2015 13:56
Parser to remove dupe arch:all files and combine packages.i386 and packages.amd64 files
#!/usr/bin/env python3
INPUT1 = 'Packages.i386'
INPUT2 = 'Packages.amd64'
OUTPUT = 'Packages.amd64i386'
known_all = set()
# open output
def parse_package(input_file,output_file):
output_buffer = []