aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-satisfydepends-funcs
diff options
context:
space:
mode:
authorLoïc Minier <lool@dooz.org>2007-04-01 00:09:13 +0200
committerLoïc Minier <lool@dooz.org>2007-04-01 00:09:13 +0200
commit6587a44463d81d7508a5bacd787ff1b201894442 (patch)
tree52e37e22b82a13a04507ab2ce440bb08c3a6d9a3 /pbuilder-satisfydepends-funcs
parent5efd4d516d740ed35bf6c775be31faf2cfc23601 (diff)
downloadpbuilder-6587a44463d81d7508a5bacd787ff1b201894442.tar
pbuilder-6587a44463d81d7508a5bacd787ff1b201894442.tar.gz
* Misc cleanups.
Diffstat (limited to 'pbuilder-satisfydepends-funcs')
-rwxr-xr-xpbuilder-satisfydepends-funcs4
1 files changed, 2 insertions, 2 deletions
diff --git a/pbuilder-satisfydepends-funcs b/pbuilder-satisfydepends-funcs
index 0a4d181..0e8270c 100755
--- a/pbuilder-satisfydepends-funcs
+++ b/pbuilder-satisfydepends-funcs
@@ -113,8 +113,8 @@ function versioneddep_to_aptcmd () {
PACKAGEVERSIONS="$( package_versions "$PACKAGE" | tac | xargs )"
CANDIDATE_VERSION="$( candidate_version "$PACKAGE" )"
- COMPARESTRING="$(echo "$INSTALLPKG" | tr "/" " " | sed 's/^.*([ ]*\(<<\|<=\|>=\|=\|<\|>>\|>\)[ ]*\(.*\)).*$/\1/')"
- DEPSVERSION="$(echo "$INSTALLPKG" | tr "/" " " | sed 's/^.*([ ]*\(<<\|<=\|>=\|=\|<\|>>\|>\)[ ]*\(.*\)).*$/\2/')"
+ COMPARESTRING="$(echo "$INSTALLPKG" | tr "/" " " | sed 's/^.*( *\(<<\|<=\|>=\|=\|<\|>>\|>\) *\(.*\)).*$/\1/')"
+ DEPSVERSION="$(echo "$INSTALLPKG" | tr "/" " " | sed 's/^.*( *\(<<\|<=\|>=\|=\|<\|>>\|>\) *\(.*\)).*$/\2/')"
# if strictly versionned, we skip to outputting that version
if [ "=" = "$COMPARESTRING" ]; then
PACKAGE_WITHVERSION="$PACKAGE=$DEPSVERSION"