From ad43063cf5e3241644faa007213534ddfd02a571 Mon Sep 17 00:00:00 2001
From: Ben Armstrong <synrg@debian.org>
Date: Tue, 19 Jan 2010 20:44:03 +0100
Subject: Update lh_source_debian to deal with multiple dsc files for the same
source.
---
helpers/lh_source_debian | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/helpers/lh_source_debian b/helpers/lh_source_debian
index fef38a4..2668948 100755
--- a/helpers/lh_source_debian
+++ b/helpers/lh_source_debian
@@ -127,7 +127,10 @@ rm -f source-selection.txt
# Sort sources
for DSC in chroot/*.dsc
do
- SOURCE="$(sed -n 's|^Source: ||p' ${DSC})"
+ SOURCE="$(sed -n 's|^Source: ||p' ${DSC} 2>/dev/null || :)"
+ # The sed may fail if multiple dsc files exist for same source, as the
+ # first one to match will have already been moved.
+ [ -n "$SOURCE" ] || continue
case "${SOURCE}" in
lib?*)
--
cgit v1.0