summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-07-21 07:49:45 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-07-21 07:49:45 (EDT)
commit66e15cc7256ff7cd438386b053da0aa23d4da51a (patch)
treecd7a47b9a8c14c476ff88ca533afc6cc542188ae
parent9a8457da579988f153ef5bb17b5235f8e582758d (diff)
downloaddeb-66e15cc7256ff7cd438386b053da0aa23d4da51a.zip
deb-66e15cc7256ff7cd438386b053da0aa23d4da51a.tar.gz
deb-66e15cc7256ff7cd438386b053da0aa23d4da51a.tar.bz2
Download only the newest source package.
NB: This assumes that dak et al. add newer versions to the end of the Sources list.
-rwxr-xr-xsrc/deb.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/deb.sh b/src/deb.sh
index 0559adc..e6269fb 100755
--- a/src/deb.sh
+++ b/src/deb.sh
@@ -242,7 +242,7 @@ EOF
pkg="${1}"
- line="$(grep "^${pkg} " "${DEB_DIR}/dsc.list")" || \
+ line="$(grep "^${pkg} " "${DEB_DIR}/dsc.list" | tail -n 1)" || \
error 'Package "%s" not found' "${pkg}"
dsc="${line#${pkg} }"