diff options
author | Loïc Minier <lool@dooz.org> | 2010-01-04 12:51:58 +0100 |
---|---|---|
committer | Loïc Minier <lool@dooz.org> | 2010-01-04 15:46:03 +0100 |
commit | 94f81ef48f5735946ef8d24cc012fba9d6fdd1ce (patch) | |
tree | ebbb5219eb9269d4228154b33e475a39f79f3400 | |
parent | d0e74b5d7ccb8d49cef9cf063e812b4dd377ff01 (diff) | |
download | pbuilder-94f81ef48f5735946ef8d24cc012fba9d6fdd1ce.tar pbuilder-94f81ef48f5735946ef8d24cc012fba9d6fdd1ce.tar.gz |
package_versions, candidate_version(): cleanup re
package_versions(), candidate_version(): cleanup regexp
-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 430b590..dfc08ec 100755 --- a/pbuilder-satisfydepends-funcs +++ b/pbuilder-satisfydepends-funcs @@ -22,12 +22,12 @@ package_versions() { local PACKAGE="$1" - ( $CHROOTEXEC /usr/bin/apt-cache show "$PACKAGE" ) | sed -n 's/^Version: \(.*\)$/\1/p' + ( $CHROOTEXEC /usr/bin/apt-cache show "$PACKAGE" ) | sed -n 's/^Version: //p' } candidate_version() { local PACKAGE="$1" - LC_ALL=C $CHROOTEXEC apt-cache policy "$PACKAGE" | sed -n 's/ *Candidate: *\(.*\)/\1/p' + LC_ALL=C $CHROOTEXEC apt-cache policy "$PACKAGE" | sed -n 's/ *Candidate: //p' } checkbuilddep_versiondeps() { |