use dpkg-deb /dev/stdin instead of arpy
This commit is contained in:
parent
bc9771e7d1
commit
d492cd51c7
2 changed files with 3 additions and 14 deletions
|
@ -1,11 +0,0 @@
|
|||
#!/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
|
6
setup.sh
6
setup.sh
|
@ -72,9 +72,9 @@ curl "http://binarycontrol.debian.net/?q=&path=%2Ftriggers%24&format=pkglist" \
|
|||
| while read pkg url; do
|
||||
echo "working on $pkg..." >&2
|
||||
mkdir DEBIAN
|
||||
curl --location --silent "$url" \
|
||||
| ./extract_binary_control.py \
|
||||
| tar -C "DEBIAN" --exclude=./md5sums -xz
|
||||
curl --retry 2 --location --silent "$url" \
|
||||
| dpkg-deb --ctrl-tarfile /dev/stdin \
|
||||
| tar -C "DEBIAN" --exclude=./md5sums -x
|
||||
if [ ! -f DEBIAN/triggers ]; then
|
||||
rm -r DEBIAN
|
||||
continue
|
||||
|
|
Loading…
Reference in a new issue