blob: 1b498ba1d2d2e0e8557a306f225a0fea671b8590 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/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
|