summaryrefslogtreecommitdiff
path: root/.ci/undo-delangification.sh
blob: cd3844b3d6a6ce86bb2cd17a7a5e71faa5c9eb27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh -x

GLIB2_VER=`rpm -q glib2`
GLIBC_VER=`rpm -q glibc`

# Undo delangification present in the Fedora Docker images
rm -f /etc/rpm/macros.image-language-conf

dnf install -y $@

# Only reinstall glibc and glib2 if they weren't updated
RPMS=""
if [ "$GLIB2_VER" == "`rpm -q glib2`" ] ; then
	RPMS="glib2"
fi
if [ "$GLIBC_VER" == "`rpm -q glibc`" ] ; then
	if [ -z "$RPMS" ] ; then
		RPMS="glibc"
	else
		RPMS="$RPMS glibc"
	fi
fi

if [ ! -z "$RPMS" ] ; then
	dnf reinstall -y $RPMS
fi