Merge ~alfonsosanchezbeato/snappy-hwe-snaps/+git/modem-manager:not-fail-on-install into ~snappy-hwe-team/snappy-hwe-snaps/+git/modem-manager:master

Proposed by Alfonso Sanchez-Beato
Status: Merged
Approved by: Simon Fels
Approved revision: a396b5c4c94e4c0936fff33cf2670aa90bf053fa
Merged at revision: aea0b0483de963e1b627437ec1ae020017186e3c
Proposed branch: ~alfonsosanchezbeato/snappy-hwe-snaps/+git/modem-manager:not-fail-on-install
Merge into: ~snappy-hwe-team/snappy-hwe-snaps/+git/modem-manager:master
Diff against target: 27 lines (+4/-4)
1 file modified
hooks/configure (+4/-4)
Reviewer Review Type Date Requested Status
System Enablement Bot continuous-integration Approve
Simon Fels Approve
Konrad Zapałowicz (community) code Approve
Review via email: mp+335437@code.launchpad.net

Description of the change

configure: do not fail on installation
As MM will not be running still at that point.

To post a comment you must log in.
Revision history for this message
Konrad Zapałowicz (kzapalowicz) wrote :

ack

review: Approve (code)
Revision history for this message
Simon Fels (morphis) wrote :

LGTM

review: Approve
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :

PASSED: Successfully build documentation, rev: a396b5c4c94e4c0936fff33cf2670aa90bf053fa

Generated documentation is available at https://jenkins.canonical.com/system-enablement/job/snappy-hwe-snaps-snap-docs/990/

Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :

PASSED: Successfully build documentation, rev: a396b5c4c94e4c0936fff33cf2670aa90bf053fa

Generated documentation is available at https://jenkins.canonical.com/system-enablement/job/snappy-hwe-snaps-snap-docs/991/

Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :

PASSED: Successfully build documentation, rev: a396b5c4c94e4c0936fff33cf2670aa90bf053fa

Generated documentation is available at https://jenkins.canonical.com/system-enablement/job/snappy-hwe-snaps-snap-docs/992/

Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :

PASSED: Successfully build documentation, rev: a396b5c4c94e4c0936fff33cf2670aa90bf053fa

Generated documentation is available at https://jenkins.canonical.com/system-enablement/job/snappy-hwe-snaps-snap-docs/994/

Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/hooks/configure b/hooks/configure
2index c4fd410..417ef83 100755
3--- a/hooks/configure
4+++ b/hooks/configure
5@@ -2,18 +2,18 @@
6
7 set -ex
8
9-exec > "$SNAP_COMMON"/hook-log.txt 2>&1
10-
11 # $1 true/false for enabling/disabling debug log level in MM
12 # We create/remove the file for future executions and also change
13 # the logging level of the running daemon.
14 switch_debug_enable() {
15 DEBUG_FILE=$SNAP_DATA/.debug_enabled
16+ # Note that on installation MM will not be running, so we make sure
17+ # that the call to mmcli does not fail.
18 if [ "$1" = "true" ]; then
19- "$SNAP"/bin/mmcli-internal --set-logging=DEBUG
20+ "$SNAP"/bin/mmcli-internal --set-logging=DEBUG || true
21 touch "$DEBUG_FILE"
22 else
23- "$SNAP"/bin/mmcli-internal --set-logging=INFO
24+ "$SNAP"/bin/mmcli-internal --set-logging=INFO || true
25 rm -f "$DEBUG_FILE"
26 fi
27 }

Subscribers

People subscribed via source and target branches