From: martin f. krafft Date: Thu, 28 Jan 2010 23:06:34 +0000 (+0100) Subject: proper lookup of package version X-Git-Url: https://git.madduck.net/code/mbuild.git/commitdiff_plain/eae6e9eed0538117e974bfe7578bf428ebab68d0?ds=sidebyside;pf=code proper lookup of package version Signed-off-by: martin f. krafft --- 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}" ;;