~clint-fewbar/ubuntu/precise/modemmanager/fix-removed-not-purged

« back to all changes in this revision

Viewing changes to test/send-pin.py

  • Committer: Package Import Robot
  • Author(s): Artem Popov, Mathieu Trudel-Lapierre, Artem Popov
  • Date: 2012-01-02 13:32:18 UTC
  • mfrom: (1.1.13)
  • Revision ID: package-import@ubuntu.com-20120102133218-72k7fm46jjkbgqaz
Tags: 0.5+git.20111231t174444.1e332ab-0ubuntu1
[ Mathieu Trudel-Lapierre ]
* upstream snapshot 2011-12-31 17:44:44 (GMT)
  + 1e332abc957d7eea4521c95d1e28b097de5427e5

[ Artem Popov ]
* debian/patches/arduino-blacklist.patch: add Arduino devices to blacklist
  to prevent managing Arduino devices. (LP: #910736)
  - [0403:6001] FT232 USB-Serial (UART) IC.
  - [03eb:204b] Atmel Corp. LUFA USB to Serial Adapter Project.
  - Anything with the Arduino VID (2341).

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
    os._exit(1)
34
34
 
35
35
bus = dbus.SystemBus()
36
 
proxy = bus.get_object(MM_DBUS_SERVICE, sys.argv[1])
 
36
objpath = sys.argv[1]
 
37
if objpath[:1] != '/':
 
38
    objpath = "/org/freedesktop/ModemManager/Modems/" + str(objpath)
 
39
proxy = bus.get_object(MM_DBUS_SERVICE, objpath)
 
40
 
37
41
props = dbus.Interface(proxy, dbus_interface=DBUS_INTERFACE_PROPS)
38
42
req = props.Get(MM_DBUS_INTERFACE_MODEM, "UnlockRequired")
39
43
if req == "":