checkapk: silence old-pkg gzip/tar errors
when apk fetch fails (a new package is added) these just say 'gzip invalid magic' or similar, as there is no old apk to compare to. the || die is also never triggered, as it only triggers when the sort fails, since it won't trigger on earlier pipeline steps this needs more cleaning up, but i'll leave that for the future when i write some tests.
This commit is contained in:
parent
1eb4ca5369
commit
e3777a7259
|
@ -90,7 +90,7 @@ for i in $pkgname $subpackages; do
|
|||
fi
|
||||
|
||||
apk fetch --quiet --repositories-file $tmpdir/repositories --stdout $_pkgname \
|
||||
| $gunzip -c | tar -t | grep -v '^\.SIGN\.' | sort > filelist-$_pkgname-old \
|
||||
| $gunzip -c 2>/dev/null | tar -t 2>/dev/null | grep -v '^\.SIGN\.' | sort > filelist-$_pkgname-old \
|
||||
|| die "failed to download old pkg, maybe run 'apk update'?"
|
||||
|
||||
$gunzip -c "$filepath" | tar -t | grep -v '^\.SIGN\.' | sort > "filelist-$_pkgname"
|
||||
|
|
Loading…
Reference in New Issue