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 | |
parent | 61754016baf1b8f4e86ccb3a49da335b7594e07e (diff) | |
download | pbuilder-382834391ba82f745024a2cdbb66cf8edfbfd12d.tar pbuilder-382834391ba82f745024a2cdbb66cf8edfbfd12d.tar.gz |
Normalize output of get_build_deps(), _conflicts()
-rwxr-xr-x | pbuilder-satisfydepends-funcs | 14 | ||||
-rwxr-xr-x | test_pbuilder-satisfydepends-funcs | 3 |
2 files changed, 11 insertions, 6 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() { diff --git a/test_pbuilder-satisfydepends-funcs b/test_pbuilder-satisfydepends-funcs index 479c1ff..0552ec2 100755 --- a/test_pbuilder-satisfydepends-funcs +++ b/test_pbuilder-satisfydepends-funcs @@ -45,8 +45,7 @@ trap cleanup sigpipe sighup exit # TODO move to build dir DEBIAN_CONTROL="$(tempfile)" -expect_output "autotools-dev (>= 1.2), debhelper, quilt (<< 12:0), libwxgtk2.8-dev -test, test1, test2, test3 | test4, test5" \ +expect_output "autotools-dev (>= 1.2), debhelper, quilt (<< 12:0), libwxgtk2.8-dev, test, test1, test2, test3 | test4, test5" \ test_get_build_deps "no" expect_output "autotools-dev (>= 1.2), debhelper, quilt (<< 12:0), libwxgtk2.8-dev" \ test_get_build_deps "yes" |