1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-23 00:08:50 -05:00

makepkg: avoid usage of tr to sidestep locale issues

to quote dan:
  "turkish will FUCK YOU UP. this is not the first or the last time"

Signed-off-by: Dave Reisner <d@falconindy.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dave Reisner 2011-03-29 20:35:48 -04:00 committed by Dan McGee
parent 287e8d356e
commit 541c2470b8

View File

@ -1039,13 +1039,12 @@ create_package() {
local comp_files=".PKGINFO" local comp_files=".PKGINFO"
# check for changelog/install files # check for changelog/install files
for i in 'changelog' 'install'; do for i in 'changelog/.CHANGELOG' 'install/.INSTALL'; do
orig=${!i} IFS='/' read -r orig dest <<< "$i"
dest=$(tr '[:lower:]' '[:upper:]' <<<".$i")
if [[ -n $orig ]]; then if [[ -n ${!orig} ]]; then
msg2 "$(gettext "Adding %s file...")" "$i" msg2 "$(gettext "Adding %s file...")" "$orig"
cp "$startdir/$orig" "$dest" cp "$startdir/${!orig}" "$dest"
chmod 644 "$dest" chmod 644 "$dest"
comp_files+=" $dest" comp_files+=" $dest"
fi fi