summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Armstrong <synrg@debian.org>2010-01-19 20:44:03 +0100
committerDaniel Baumann <daniel@debian.org>2010-01-19 20:44:25 +0100
commitc6ecdcfc9cdba36d74985d5477272460cbb14414 (patch)
treec2b70b6b9bf7957e2d054eaa53eb77f89e421bc5
parentc2bd339a74cc5b54eec69afc8648683f59c417fc (diff)
downloadvyos-live-build-c6ecdcfc9cdba36d74985d5477272460cbb14414.tar.gz
vyos-live-build-c6ecdcfc9cdba36d74985d5477272460cbb14414.zip
Update lh_source_debian to deal with multiple dsc files for the same source.
-rwxr-xr-xhelpers/lh_source_debian5
1 files changed, 4 insertions, 1 deletions
diff --git a/helpers/lh_source_debian b/helpers/lh_source_debian
index fef38a4c7..266894852 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?*)