Skip to content
Snippets Groups Projects
Commit f168f1df authored by Mingcong Bai's avatar Mingcong Bai
Browse files

fix(pm/dpkg.sh): fallback to a more generic Spiral provides debug print

FIXME: The original implementation in v4.1.1, while able to print all Spiral
provides, causes Autobuild4 to crash when building packages with manually
specified _spiral Provides.
parent 506516d9
No related branches found
No related tags found
No related merge requests found
......@@ -57,6 +57,7 @@ dpkgfield() {
done <<< "${_data}"
fi
if [ "${_v}" = "@AB_SPIRAL_PROVIDES@" ]; then
abdbg "Generating Debian-compatible (Spiral) provides ..."
if [ -d "$PKGDIR"/usr/lib/girepository-1.0 ]; then
for gir in `find "$PKGDIR"/usr/lib/girepository-1.0/ -type f`; do
_string_v+=("$(echo gir1.2-$(basename $gir) | \
......@@ -95,6 +96,8 @@ dpkgfield() {
for SPIRAL_PROV in "${__AB_SPIRAL_PROVIDES[@]}"; do
_string_v+=("${SPIRAL_PROV}_spiral")
done
# FIXME: This, while able to print all Spiral provides, causes Autobuild4 to
# crash when building packages with manually specified _spiral Provides.
abdbg "Generated Debian-compatible (Spiral) provides: ${_string_v[@]/@AB_SPIRAL_PROVIDES@/}" >&2
fi
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment