aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-satisfydepends-classic
diff options
context:
space:
mode:
Diffstat (limited to 'pbuilder-satisfydepends-classic')
-rwxr-xr-xpbuilder-satisfydepends-classic2
1 files changed, 1 insertions, 1 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