From 66e15cc7256ff7cd438386b053da0aa23d4da51a Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 21 Jul 2012 07:49:45 -0400 Subject: Download only the newest source package. NB: This assumes that dak et al. add newer versions to the end of the Sources list. --- (limited to 'src/deb.sh') 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} }" -- cgit v0.9.1