]> andersk Git - config-package-dev.git/commitdiff
Set LC_ALL=C when matching potentially localized dpkg output
authorAnders Kaseorg <andersk@mit.edu>
Wed, 26 Oct 2011 00:26:41 +0000 (20:26 -0400)
committerAnders Kaseorg <andersk@mit.edu>
Wed, 26 Oct 2011 00:26:41 +0000 (20:26 -0400)
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
check-files.mk
debian/changelog
divert.sh.in

index d117c9ab29ed90986d674e08e04a462c72e3702e..942673364b4627fd09c1a7d262637fb2c80c6bf5 100644 (file)
@@ -61,7 +61,7 @@ $(call debian_check_files,%): $(call debian_check_files_tmp,%)
 $(call debian_check_files_tmp,%): target = $(call undebian_check_files_tmp,$@)
 $(call debian_check_files_tmp,%): name = $(call debian_check_files_check,$(target))
 $(call debian_check_files_tmp,%): truename = $(shell /usr/sbin/dpkg-divert --truename $(name))
 $(call debian_check_files_tmp,%): target = $(call undebian_check_files_tmp,$@)
 $(call debian_check_files_tmp,%): name = $(call debian_check_files_check,$(target))
 $(call debian_check_files_tmp,%): truename = $(shell /usr/sbin/dpkg-divert --truename $(name))
-$(call debian_check_files_tmp,%): package = $(shell dpkg -S $(name) | sed -n '/^diversion by /! s/: .*$$// p')
+$(call debian_check_files_tmp,%): package = $(shell LC_ALL=C dpkg -S $(name) | sed -n '/^diversion by /! s/: .*$$// p')
 $(call debian_check_files_tmp,%): $(truename)
        [ -n "$(package)" ]
        mkdir -p $(@D)
 $(call debian_check_files_tmp,%): $(truename)
        [ -n "$(package)" ]
        mkdir -p $(@D)
index dec0f5cd018746704d80e79a6100cc392dffb8b9..f64269a79afc0ab8b8ec7023200bad8baf4ced6b 100644 (file)
@@ -4,10 +4,11 @@ config-package-dev (4.13) UNRELEASED; urgency=low
     Multi-Arch: same packages.
   * Fix encode script to work with Perl 5.12.  While we’re at it, turn on
     strict and warnings.
     Multi-Arch: same packages.
   * Fix encode script to work with Perl 5.12.  While we’re at it, turn on
     strict and warnings.
+  * Set LC_ALL=C when matching potentially localized dpkg output.
   * Bump Standards-Version to 3.9.2 (no changes required).
   * Add Vcs-Git, Vcs-Browser.
 
   * Bump Standards-Version to 3.9.2 (no changes required).
   * Add Vcs-Git, Vcs-Browser.
 
- -- Anders Kaseorg <andersk@mit.edu>  Tue, 25 Oct 2011 20:04:23 -0400
+ -- Anders Kaseorg <andersk@mit.edu>  Tue, 25 Oct 2011 20:26:16 -0400
 
 config-package-dev (4.12) unstable; urgency=low
 
 
 config-package-dev (4.12) unstable; urgency=low
 
index 7e7659ee79efbb2ba4e460d2f6aa1d88f348edb8..2c3f161b4ea47d092c7899e82f3885468d883e4a 100644 (file)
@@ -24,7 +24,7 @@ divert_link_divert()
     file=$1
     ourfile=$2
     theirfile=$3
     file=$1
     ourfile=$2
     theirfile=$3
-    if ! dpkg-divert --list "$package" | \
+    if ! LC_ALL=C dpkg-divert --list "$package" | \
        grep -xFq "diversion of $file to $theirfile by $package"; then
        dpkg-divert --divert "$theirfile" --rename --package "$package" --add "$file"
     fi
        grep -xFq "diversion of $file to $theirfile by $package"; then
        dpkg-divert --divert "$theirfile" --rename --package "$package" --add "$file"
     fi
@@ -116,7 +116,7 @@ check_undivert_unlink()
     ourfile=$prefix$ours$suffix
     theirfile=$prefix$theirs$suffix
 
     ourfile=$prefix$ours$suffix
     theirfile=$prefix$theirs$suffix
 
-    if dpkg-divert --list "$package" | \
+    if LC_ALL=C dpkg-divert --list "$package" | \
        grep -xFq "diversion of $file to $theirfile by $package"; then
        undivert_unlink "$prefix" "$suffix"
     fi
        grep -xFq "diversion of $file to $theirfile by $package"; then
        undivert_unlink "$prefix" "$suffix"
     fi
@@ -126,7 +126,7 @@ check_undivert_unremove()
 {
     file=$1
     removedfile=$2
 {
     file=$1
     removedfile=$2
-    if dpkg-divert --list "$package" | \
+    if LC_ALL=C dpkg-divert --list "$package" | \
        grep -xFq "diversion of $file to $removedfile by $package"; then
        undivert_unremove "$file"
     fi
        grep -xFq "diversion of $file to $removedfile by $package"; then
        undivert_unremove "$file"
     fi
This page took 0.278918 seconds and 5 git commands to generate.