filter out tar time wrap warnings using grep

https://phabricator.whonix.org/T401#6634
This commit is contained in:
Patrick Schleizer 2015-09-04 00:54:50 +00:00
parent 730db56623
commit 7d0b2479f5

View File

@ -131,7 +131,8 @@ echo "Using $UPDATEVM as UpdateVM to download updates for Dom0; this may take so
# Start VM if not running already
qvm-run $QVMRUN_OPTS -a $UPDATEVM true || exit 1
tar c /var/lib/rpm /etc/yum.repos.d /etc/yum.conf 2>/dev/null | qvm-run -p "$UPDATEVM" 'tar x -C /var/lib/qubes/dom0-updates'
tar c /var/lib/rpm /etc/yum.repos.d /etc/yum.conf 2>/dev/null | \
qvm-run -p "$UPDATEVM" 'LC_MESSAGES=C tar x -C /var/lib/qubes/dom0-updates 2>&1 | grep -v -E "s in the future"'
qvm-run $QVMRUN_OPTS --pass-io $UPDATEVM "/usr/lib/qubes/qubes-download-dom0-updates.sh --doit --nogui $ALL_OPTS"
RETCODE=$?