diff options
-rwxr-xr-x | pbuilder-satisfydepends-classic | 2 | ||||
-rwxr-xr-x | test_pbuilder-satisfydepends-classic | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pbuilder-satisfydepends-classic b/pbuilder-satisfydepends-classic index 6742d4a..56f1abd 100755 --- a/pbuilder-satisfydepends-classic +++ b/pbuilder-satisfydepends-classic @@ -51,7 +51,7 @@ get_pkg_name() { # filter operator and version of a "/" escaped versioned build-dep; e.g. # "foo/(>=/2)" becomes ">= 2" get_dep_op_and_ver() { - echo "$*" | tr "/" " " | sed 's/^.*( *\(<<\|<=\|>=\|=\|<\|>>\|>\) *\(.*\)).*$/\1 \2/' + echo "$*" | sed -n 's#/# #g; s/.*( *\(<<\|<=\|>=\|=\|<\|>>\|>\) *\([^ )]*\) *).*/\1 \2/p' } # call apt-get in chroot in simulate mode diff --git a/test_pbuilder-satisfydepends-classic b/test_pbuilder-satisfydepends-classic index 021ffbe..c97c3d1 100755 --- a/test_pbuilder-satisfydepends-classic +++ b/test_pbuilder-satisfydepends-classic @@ -97,6 +97,6 @@ expect_output ">= 5.0.0 >= 0.60 >= 0.3.2-0 >= 0.1.7 ->= 0.9.8b-1" get_dep_op_and_ver "`test_split_deps | grep '('`" +>= 0.9.8b-1" get_dep_op_and_ver "`test_split_deps`" testlib_summary |