Skip to content

Commit af59250

Browse files
committed
git-extra: update git-extra.install
Signed-off-by: Jeremy Drake <[email protected]>
1 parent 82244f0 commit af59250

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

git-extra/git-extra.install

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -298,11 +298,12 @@ test -d "$TMPDIR" || test ! -d "$TMP" || {\
298298
! grep -q '"[CD]:/' /etc/xml/catalog ||
299299
sed -i -e 's|"[CD]:/[^"]*/usr/|"/usr/|g' /etc/xml/catalog
300300

301-
# Work around an outdated i686 gnupg/gnutls build that depends on a hence-updated libunistring
302-
if test i686 = $arch -a ! -e /usr/bin/msys-unistring-2.dll -a -e /usr/bin/msys-unistring-5.dll &&
303-
grep msys-unistring-2 /usr/bin/msys-gnutls-30.dll 2>&1 >/dev/null
301+
# Remove work around for an outdated i686 gnupg/gnutls build that depended on a hence-updated libunistring
302+
if test i686 = $arch -a -e /usr/bin/msys-unistring-2.dll &&
303+
! pacman -Qoq /usr/bin/msys-unistring-2.dll >/dev/null 2>&1 &&
304+
! grep -q msys-unistring-2 /usr/bin/msys-gnutls-30.dll 2>&1 >/dev/null
304305
then
305-
cp /usr/bin/msys-unistring-5.dll /usr/bin/msys-unistring-2.dll
306+
rm /usr/bin/msys-unistring-2.dll
306307
fi
307308
}
308309

0 commit comments

Comments
 (0)