mtp

Merge lp://staging/~cyphermox/mtp/lp1421664 into lp://staging/mtp

Proposed by Mathieu Trudel-Lapierre
Status: Merged
Approved by: Sebastien Bacher
Approved revision: 67
Merged at revision: 64
Proposed branch: lp://staging/~cyphermox/mtp/lp1421664
Merge into: lp://staging/mtp
Diff against target: 27 lines (+4/-2)
2 files modified
debian/mtp-server.conf (+2/-1)
server/server.cpp (+2/-1)
To merge this branch: bzr merge lp://staging/~cyphermox/mtp/lp1421664
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Sebastien Bacher Approve
Ubuntu Phablet Team Pending
Review via email: mp+249669@code.staging.launchpad.net

Commit message

Fix startup issues on desktop: guard against android_usb not being available and don't fail with an abort when /dev/mtp_usb isn't there; just error and return.

Description of the change

Fix startup issues on desktop: guard against android_usb not being available and don't fail with an abort when /dev/mtp_usb isn't there; just error and return.

To post a comment you must log in.
66. By Mathieu Trudel-Lapierre

We still need mtp to exit when it fails to open /dev/mtp_usb.

Revision history for this message
Sebastien Bacher (seb128) wrote :

testing with sh it seems to be unhappy about the -o line, complaining about an illegal number, using that instead works
"if [ -z "$disconnected" ] || [ "$disconnected" -ge 1 ];"

not sure what's the issue with the version there (or with my local testing) though

Revision history for this message
Sebastien Bacher (seb128) wrote :

oh, I guess the reason is that the -o runs the second test even when the first one is invalid, or $disconnected is not a number in that case and that leads to the error

67. By Mathieu Trudel-Lapierre

Improve on the if check for disconnected state.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Sebastien Bacher (seb128) wrote :

seems fine to me now, thanks

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches