From eae6e9eed0538117e974bfe7578bf428ebab68d0 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Fri, 29 Jan 2010 00:06:34 +0100 Subject: [PATCH 1/1] proper lookup of package version Signed-off-by: martin f. krafft --- sbuild-wrapper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}" ;; -- 2.39.5