aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-satisfydepends-funcs
diff options
context:
space:
mode:
authorLoïc Minier <lool@dooz.org>2010-01-04 12:53:34 +0100
committerLoïc Minier <lool@dooz.org>2010-01-04 15:46:03 +0100
commit87e4fcc7e27e0aaac3b2615f3c03572bd64edb90 (patch)
tree6a32cc4141577b3795b6c2eae126d3d180b064b9 /pbuilder-satisfydepends-funcs
parent94f81ef48f5735946ef8d24cc012fba9d6fdd1ce (diff)
downloadpbuilder-87e4fcc7e27e0aaac3b2615f3c03572bd64edb90.tar
pbuilder-87e4fcc7e27e0aaac3b2615f3c03572bd64edb90.tar.gz
package_versions(): drop useless subshell
package_versions(): drop useless subshell; pipes are already run in a subshell. Also add LC_ALL=C for consistency when parsing output of commands.
Diffstat (limited to 'pbuilder-satisfydepends-funcs')
-rwxr-xr-xpbuilder-satisfydepends-funcs2
1 files changed, 1 insertions, 1 deletions
diff --git a/pbuilder-satisfydepends-funcs b/pbuilder-satisfydepends-funcs
index dfc08ec..6f31c1a 100755
--- a/pbuilder-satisfydepends-funcs
+++ b/pbuilder-satisfydepends-funcs
@@ -22,7 +22,7 @@
package_versions() {
local PACKAGE="$1"
- ( $CHROOTEXEC /usr/bin/apt-cache show "$PACKAGE" ) | sed -n 's/^Version: //p'
+ LC_ALL=C $CHROOTEXEC /usr/bin/apt-cache show "$PACKAGE" | sed -n 's/^Version: //p'
}
candidate_version() {