aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoïc Minier <lool@dooz.org>2010-01-05 16:18:03 +0100
committerLoïc Minier <lool@dooz.org>2010-01-05 16:18:03 +0100
commit41a71971be1911b46c4e77fa824a1ed4e782b6c0 (patch)
tree5ec793d1644a64eb60b3a45917fb674dd9a4c1ca
parentc19f3cf09de552c0f16f8cb9193b87af1f207b08 (diff)
downloadpbuilder-41a71971be1911b46c4e77fa824a1ed4e782b6c0.tar
pbuilder-41a71971be1911b46c4e77fa824a1ed4e782b6c0.tar.gz
Fix extra spaces in split_deps() output
-rwxr-xr-xpbuilder-satisfydepends-classic2
-rwxr-xr-xtest_pbuilder-satisfydepends-classic2
2 files changed, 2 insertions, 2 deletions
diff --git a/pbuilder-satisfydepends-classic b/pbuilder-satisfydepends-classic
index 899f5f2..2559324 100755
--- a/pbuilder-satisfydepends-classic
+++ b/pbuilder-satisfydepends-classic
@@ -38,7 +38,7 @@ split_deps() {
# splits build-dep with alternates into one alternate per line; e.g. "foo|bar"
# becomes "foo", "bar"
split_alternates() {
- echo "$*" | awk 'BEGIN{RS="|"} {print}'
+ echo "$*" | sed 's/ *| */\n/g'
}
# filters package name out of a "/" escaped simple build-dep, possibly with
diff --git a/test_pbuilder-satisfydepends-classic b/test_pbuilder-satisfydepends-classic
index b3d129e..40c48f7 100755
--- a/test_pbuilder-satisfydepends-classic
+++ b/test_pbuilder-satisfydepends-classic
@@ -60,6 +60,6 @@ libssl-dev/(>=/0.9.8b-1)
liblaunchpad-integration-dev" test_split_deps
expect_output "foo
- bar" split_alternates "foo | bar"
+bar" split_alternates "foo | bar"
testlib_summary