Update lh_source_debian to deal with multiple dsc files for the same source.

This commit is contained in:
Ben Armstrong 2010-01-19 20:44:03 +01:00 committed by Daniel Baumann
parent e1a4e1b91b
commit ad43063cf5
1 changed files with 4 additions and 1 deletions

View File

@ -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?*)