diff options
author | Loïc Minier <lool@dooz.org> | 2010-01-04 23:55:50 +0100 |
---|---|---|
committer | Loïc Minier <lool@dooz.org> | 2010-01-04 23:55:50 +0100 |
commit | 382834391ba82f745024a2cdbb66cf8edfbfd12d (patch) | |
tree | 055fff9d101e21ab53cad9ec0adb567673fcb7e0 /pbuilder-satisfydepends-funcs | |
parent | 61754016baf1b8f4e86ccb3a49da335b7594e07e (diff) | |
download | pbuilder-382834391ba82f745024a2cdbb66cf8edfbfd12d.tar pbuilder-382834391ba82f745024a2cdbb66cf8edfbfd12d.tar.gz |
Normalize output of get_build_deps(), _conflicts()
Diffstat (limited to 'pbuilder-satisfydepends-funcs')
-rwxr-xr-x | pbuilder-satisfydepends-funcs | 14 |
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() { |