$(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)
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.
- -- 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
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
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
{
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