X-Git-Url: https://git.madduck.net/code/mbuild.git/blobdiff_plain/01d6356b34d4735dffc414feadf516160c029193..eae6e9eed0538117e974bfe7578bf428ebab68d0:/sbuild-wrapper.sh diff --git a/sbuild-wrapper.sh b/sbuild-wrapper.sh index 12e178c..9a58d88 100755 --- a/sbuild-wrapper.sh +++ b/sbuild-wrapper.sh @@ -126,7 +126,7 @@ dcmd "$dscfile_basename" | while read f; do case "$f" in *.tar.gz) - last_version="$(apt-cache madison mdadm | sed -rne "s,.+(\<${upstream_version}[^[:space:]]+).*,\1,p")" + last_version="$(apt-cache madison $packagename | sed -rne "s,.+(\<${upstream_version}[^[:space:]]+).*,\1,p")" echo "I: fetching missing tarball for $upstream_version (from $last_version)…" >&2 apt-get --tar-only --only-source source "${packagename}=${last_version}" ;;