find_dpkg_trigger_cycles/extract_binary_control.py

12 lines
203 B
Python
Raw Normal View History

#!/usr/bin/env python3
import arpy
import sys
ar=arpy.Archive(fileobj=sys.stdin.buffer)
for f in ar:
if f.header.name == b"control.tar.gz":
sys.stdout.buffer.write(f.read())
break