From 87e4fcc7e27e0aaac3b2615f3c03572bd64edb90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Minier?= Date: Mon, 4 Jan 2010 12:53:34 +0100 Subject: 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. --- pbuilder-satisfydepends-funcs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pbuilder-satisfydepends-funcs') 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() { -- cgit v1.2.3