aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-buildpackage
diff options
context:
space:
mode:
authordancer <dancer>2002-02-17 21:40:27 +0000
committerdancer <dancer>2002-02-17 21:40:27 +0000
commit14e9f5b066fa57e2297f4690fbb49d5f849f6b03 (patch)
tree241ef2a2ee76025eb71aff9d62ae35d79e3a32e3 /pbuilder-buildpackage
parent5e3caa3d4eb6ebd2df30f9a1079c385d214a823f (diff)
downloadpbuilder-14e9f5b066fa57e2297f4690fbb49d5f849f6b03.tar
pbuilder-14e9f5b066fa57e2297f4690fbb49d5f849f6b03.tar.gz
add support for versioned build-deps with space in front.
Diffstat (limited to 'pbuilder-buildpackage')
-rwxr-xr-xpbuilder-buildpackage8
1 files changed, 4 insertions, 4 deletions
diff --git a/pbuilder-buildpackage b/pbuilder-buildpackage
index 7b231e2..fb2610b 100755
--- a/pbuilder-buildpackage
+++ b/pbuilder-buildpackage
@@ -97,8 +97,8 @@ function checkbuilddep_internal () {
if echo "$INSTALLPKG" | grep '[(]' > /dev/null; then
#echo "Debug: $INSTALLPKG"
if ! checkbuilddep_versiondeps ${CURRENTREALPKGNAME} \
- $(echo "$INSTALLPKG" | tr "/" " " | sed 's/^.*(\(<<\|<=\|>=\|=\|<\|>>\|>\)[ ]*\(.*\)).*$/\1/') \
- $(echo "$INSTALLPKG" | tr "/" " " | sed 's/^.*(\(<<\|<=\|>=\|=\|<\|>>\|>\)[ ]*\(.*\)).*$/\2/') ; then
+ $(echo "$INSTALLPKG" | tr "/" " " | sed 's/^.*([ ]*\(<<\|<=\|>=\|=\|<\|>>\|>\)[ ]*\(.*\)).*$/\1/') \
+ $(echo "$INSTALLPKG" | tr "/" " " | sed 's/^.*([ ]*\(<<\|<=\|>=\|=\|<\|>>\|>\)[ ]*\(.*\)).*$/\2/') ; then
echo " -> Does not satisfy version, not trying"
continue;
fi
@@ -149,8 +149,8 @@ function checkbuilddep_internal () {
if echo "$INSTALLPKG" | grep '[(]' > /dev/null ; then
# this package has version-conflicts
if ! checkbuilddep_versiondeps ${CURRENTREALPKGNAME} \
- $(echo "$INSTALLPKG" | tr "/" " " | sed 's/^.*(\(<<\|<=\|>=\|=\|<\|>>\|>\)[ ]*\(.*\)).*$/\1/') \
- $(echo "$INSTALLPKG" | tr "/" " " | sed 's/^.*(\(<<\|<=\|>=\|=\|<\|>>\|>\)[ ]*\(.*\)).*$/\2/'); then
+ $(echo "$INSTALLPKG" | tr "/" " " | sed 's/^.*([ ]*\(<<\|<=\|>=\|=\|<\|>>\|>\)[ ]*\(.*\)).*$/\1/') \
+ $(echo "$INSTALLPKG" | tr "/" " " | sed 's/^.*([ ]*\(<<\|<=\|>=\|=\|<\|>>\|>\)[ ]*\(.*\)).*$/\2/'); then
echo "I: Satisfies version, not trying"
continue;
fi