Merge remote-tracking branch 'origin/pr/66'
* origin/pr/66: fixed qubes-core-agent upgrading double package manager lock Fixes QubesOS/qubes-issues#1889
This commit is contained in:
commit
6cf30bff29
@ -17,9 +17,10 @@ elif [ -e /etc/debian_version ]; then
|
|||||||
## Debian
|
## Debian
|
||||||
set -e
|
set -e
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
apt_get_output="$(LANG="C" apt-get -s upgrade 2>&1)"
|
apt_get_update_output="$(apt-get -q update 2>&1)"
|
||||||
|
apt_get_upgrade_output="$(LANG="C" apt-get -s upgrade 2>&1)"
|
||||||
exit_code="$?"
|
exit_code="$?"
|
||||||
echo "$apt_get_output" | awk "/^Inst/{ print $2 }" | [ "$(wc -L)" -eq 0 ] && echo "true" || echo "false"
|
echo "$apt_get_upgrade_output" | awk "/^Inst/{ print $2 }" | [ "$(wc -L)" -eq 0 ] && echo "true" || echo "false"
|
||||||
else
|
else
|
||||||
echo "Check not implemented for this distribution" >&2
|
echo "Check not implemented for this distribution" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -5,5 +5,4 @@ After=qubes-qrexec-agent.service
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/bin/sh -c 'if [ -e /etc/debian_version ]; then apt-get -q update; fi'
|
|
||||||
ExecStart=/usr/lib/qubes/upgrades-status-notify
|
ExecStart=/usr/lib/qubes/upgrades-status-notify
|
||||||
|
Loading…
Reference in New Issue
Block a user