dom0-updates: clean local repo when --clean given
This commit is contained in:
parent
15207dadcc
commit
a7c43e6148
@ -27,12 +27,15 @@ GUI=
|
|||||||
CHECK_ONLY=
|
CHECK_ONLY=
|
||||||
ALL_OPTS=$*
|
ALL_OPTS=$*
|
||||||
QVMRUN_OPTS=
|
QVMRUN_OPTS=
|
||||||
|
CLEAN=
|
||||||
# Filter out some yum options and collect packages list
|
# Filter out some yum options and collect packages list
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
--enablerepo=*|\
|
--enablerepo=*|\
|
||||||
--disablerepo=*|\
|
--disablerepo=*)
|
||||||
|
;;
|
||||||
--clean)
|
--clean)
|
||||||
|
CLEAN=1
|
||||||
;;
|
;;
|
||||||
--gui)
|
--gui)
|
||||||
GUI=1
|
GUI=1
|
||||||
@ -71,6 +74,10 @@ if [ "$CHECK_ONLY" == "1" ] && ! xl domid $UPDATEVM > /dev/null 2>&1; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -n "$CLEAN" ]; then
|
||||||
|
rm -f /var/lib/qubes/updates/rpm/*
|
||||||
|
fi
|
||||||
|
|
||||||
# We should ensure the clocks in Dom0 and UpdateVM are in sync
|
# We should ensure the clocks in Dom0 and UpdateVM are in sync
|
||||||
# becuase otherwise yum might complain about future timestamps
|
# becuase otherwise yum might complain about future timestamps
|
||||||
qvm-sync-clock
|
qvm-sync-clock
|
||||||
|
Loading…
Reference in New Issue
Block a user