aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoïc Minier <lool@dooz.org>2010-01-04 12:51:58 +0100
committerLoïc Minier <lool@dooz.org>2010-01-04 15:46:03 +0100
commit94f81ef48f5735946ef8d24cc012fba9d6fdd1ce (patch)
treeebbb5219eb9269d4228154b33e475a39f79f3400
parentd0e74b5d7ccb8d49cef9cf063e812b4dd377ff01 (diff)
downloadpbuilder-94f81ef48f5735946ef8d24cc012fba9d6fdd1ce.tar
pbuilder-94f81ef48f5735946ef8d24cc012fba9d6fdd1ce.tar.gz
package_versions, candidate_version(): cleanup re
package_versions(), candidate_version(): cleanup regexp
-rwxr-xr-xpbuilder-satisfydepends-funcs4
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() {