check.sh: Only run dpkg-scansources if pkga is source

This commit is contained in:
Johannes 'josch' Schauer 2016-08-16 10:13:04 +02:00
parent 627c2f6598
commit 33d91a8c8d

View file

@ -253,7 +253,9 @@ END
fi fi
dpkg-scanpackages "$workdir/repo" /dev/null ./ > "$workdir/repo/Packages" dpkg-scanpackages "$workdir/repo" /dev/null ./ > "$workdir/repo/Packages"
dpkg-scansources "$workdir/repo" /dev/null ./ > "$workdir/repo/Sources" if [ "$pkgtype" != binary ]; then
dpkg-scansources "$workdir/repo" /dev/null ./ > "$workdir/repo/Sources"
fi
if [ "$pkgtype" = binary ]; then if [ "$pkgtype" = binary ]; then
tail -n 999999 "$workdir/repo/Packages" >&2 tail -n 999999 "$workdir/repo/Packages" >&2