dom0-update: prevent template package upgrades (#996)
This would override user changes to the template. Previous method
(Obsoletes: rpm header) doesn't work now, so add explicit exclude list
as yum option
Fixes qubesos/qubes-issues#996
(cherry picked from commit 4cab815317
)
Conflicts:
dom0-updates/qubes-dom0-update
This commit is contained in:
parent
d276a1590c
commit
690e10ffd4
@ -21,11 +21,13 @@ if [ "$1" = "--help" ]; then
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Prevent template upgrade - this would override user changes
|
||||||
|
TEMPLATE_EXCLUDE_OPTS="--exclude=`rpm -qa --qf '%{NAME},' qubes-template-\*`"
|
||||||
PKGS=
|
PKGS=
|
||||||
YUM_OPTS=
|
YUM_OPTS="$TEMPLATE_EXCLUDE_OPTS"
|
||||||
GUI=
|
GUI=
|
||||||
CHECK_ONLY=
|
CHECK_ONLY=
|
||||||
ALL_OPTS=$*
|
ALL_OPTS="$TEMPLATE_EXCLUDE_OPTS $*"
|
||||||
QVMRUN_OPTS=
|
QVMRUN_OPTS=
|
||||||
CLEAN=
|
CLEAN=
|
||||||
# Filter out some yum options and collect packages list
|
# Filter out some yum options and collect packages list
|
||||||
|
Loading…
Reference in New Issue
Block a user