mtp-connect always returns status 0

Bug #620814 reported by Andras Muranyi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libmtp
Unknown
Unknown
libmtp (Debian)
Fix Released
Unknown
libmtp (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

mtp-connect seems to return with exit status 0 regardless if the connect was successful

Steps to reproduce:
(0. Install libmtp8, mtp-tools)
1. Disconnect any MTP device
2. issue 'mtp-connect'
Expexted behavior:
3. mtp-connect returns non-zero exit status
Actual behavior:
3. mtp-connect returns 0 exit status

-- Test script:
#!/bin/bash
mtp-connect
echo $?

-- Result:

libmtp version: 1.0.2

No devices.
0

Changed in libmtp (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
Changed in libmtp (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Alessio Treglia (quadrispro) wrote :

bug #625327 will fix this.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libmtp - 1.0.3-4

---------------
libmtp (1.0.3-4) experimental; urgency=low

  * New device: Wyplay Wyplayer 1e53:0007.
  * Refresh patches.

libmtp (1.0.3-3) experimental; urgency=low

  * Rename, refresh and re-organize patches.
  * debian/patches/01-devices_small_fixes.patch:
    - Fix Blackberry's name.
    - Fix Sony DCR-SR75 device ID.
    - Add flag to mark Samsung M7600 Beat/GT-S8300T as unable to read
      the battery status.
    - Add DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST flag to LG KM900.
  * New devices now supported:
    - Apple iPhone 05ac:0x1290
    - Apple iPod Touch 1st Gen 05ac:1291
    - Apple iPhone 3G 05ac:0x1292
    - Apple iPod Touch 2nd Gen 05ac:0x1293
    - Apple iPhone 3GS 05ac:0x1294
    - Apple 05ac:1296
    - Apple 05ac:1297
    - Apple 05ac:1298
    - Apple iPod Touch 3rd Gen 05ac:0x1299
    - Apple iPad 05ac:129a
    - SonyEricsson U5 0fce:0133
    - Samsung Galaxy S GT-I9000 04e8:6877
    - Samsung Vibrant SGH-T959 04e8:68a9
    - COBY MP705 1e74:6512
    - Cowon iAudio J3 0e21:0921
    - Motorola Droid X 22b8:41d6
  * debian/patches/03-ogg_flags.patch:
    - Set proper Ogg flags on some Cowon and Samsung devices.
  * debian/patches/04-autoremove_oggflac_unkn_flags.patch:
    - If the Ogg or FLAC filetypes have been flagged as being stored as
      unknown and the device now indicates it supports them then remove
      the flag.

libmtp (1.0.3-2) experimental; urgency=low

  * Install apport package hooks only if system is Ubuntu.
  * Build-Depends on lsb-release.
  * Remove unnecessary DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL for
    device Creative ZEN 041E:4157 (Closes: #520961).
  * Add device entry for the device ID 041E:4133 Creative ZEN MicroPhoto;
    Closes: #594560; LP: #537386
  * mtp-connect should not return exit status 0 regardless if the
    connect was successful; Closes: #594565, LP: #620814
  * Update series file.
  * Purge ancient /etc/udev/rules.d/65-libmtp.rules conffile; LP: #506791.
  * Remove broken link /etc/udev/rules.d/libmtp7.rules, libmtp7
    leftover.
  * debian/control{,.in}:
    - Change my email address.
    - Bump Standards.
    - Remove DM-Upload-Allowed: yes.
  * Add debian/gbp.conf file.
  * Add .gitignore file.
 -- Alessio Treglia <email address hidden> Tue, 07 Sep 2010 09:10:16 +0100

Changed in libmtp (Ubuntu):
status: Triaged → Fix Released
Changed in libmtp (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.