rescue: make libX11 test a bit more helpful

It should be more clear what gets libX11 test triggered.
This commit is contained in:
Michael Shigorin 2017-10-23 18:54:37 +03:00
parent 3afb96a824
commit af20f89346

View File

@ -2,9 +2,10 @@
no_x11() {
if rpmquery libX11 >&/dev/null; then
echo "** rescue image contains libX11 which is prohibited" >&2
echo "** rescue image contains libX11 which is prohibited"
rpm -e --test libX11
exit 1
fi
fi >&2
}
case "${GLOBAL_TEST_RESCUE:-}" in