diff options
author | Loïc Minier <lool@dooz.org> | 2007-04-01 00:09:13 +0200 |
---|---|---|
committer | Loïc Minier <lool@dooz.org> | 2007-04-01 00:09:13 +0200 |
commit | 6587a44463d81d7508a5bacd787ff1b201894442 (patch) | |
tree | 52e37e22b82a13a04507ab2ce440bb08c3a6d9a3 /pbuilder-satisfydepends-funcs | |
parent | 5efd4d516d740ed35bf6c775be31faf2cfc23601 (diff) | |
download | pbuilder-6587a44463d81d7508a5bacd787ff1b201894442.tar pbuilder-6587a44463d81d7508a5bacd787ff1b201894442.tar.gz |
* Misc cleanups.
Diffstat (limited to 'pbuilder-satisfydepends-funcs')
-rwxr-xr-x | pbuilder-satisfydepends-funcs | 4 |
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" |