aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-satisfydepends-funcs
diff options
context:
space:
mode:
authorLoïc Minier <lool@dooz.org>2010-01-04 23:55:50 +0100
committerLoïc Minier <lool@dooz.org>2010-01-04 23:55:50 +0100
commit382834391ba82f745024a2cdbb66cf8edfbfd12d (patch)
tree055fff9d101e21ab53cad9ec0adb567673fcb7e0 /pbuilder-satisfydepends-funcs
parent61754016baf1b8f4e86ccb3a49da335b7594e07e (diff)
downloadpbuilder-382834391ba82f745024a2cdbb66cf8edfbfd12d.tar
pbuilder-382834391ba82f745024a2cdbb66cf8edfbfd12d.tar.gz
Normalize output of get_build_deps(), _conflicts()
Diffstat (limited to 'pbuilder-satisfydepends-funcs')
-rwxr-xr-xpbuilder-satisfydepends-funcs14
1 files changed, 10 insertions, 4 deletions
diff --git a/pbuilder-satisfydepends-funcs b/pbuilder-satisfydepends-funcs
index 5c43e34..78fb683 100755
--- a/pbuilder-satisfydepends-funcs
+++ b/pbuilder-satisfydepends-funcs
@@ -85,17 +85,23 @@ p' \
}
get_build_deps() {
- get_source_control_field "Build-Depends"
+ local output
+
+ output="`get_source_control_field "Build-Depends"`"
if [ "$BINARY_ARCH" = no ]; then
- get_source_control_field "Build-Depends-Indep"
+ output="${output:+$output, }`get_source_control_field "Build-Depends-Indep"`"
fi
+ echo "$output"
}
get_build_conflicts() {
- get_control_field "Build-Conflicts"
+ local output
+
+ output="`get_control_field "Build-Conflicts"`"
if [ "$BINARY_ARCH" = no ]; then
- get_source_control_field "Build-Conflicts-Indep"
+ output="${output:+$output, }`get_source_control_field "Build-Conflicts-Indep"`"
fi
+ echo "$output"
}
checkbuilddep_archdeps() {