Merge lp:~sergiusens/phablet-tools/flash_deprecation_warning into lp:phablet-tools

Proposed by Sergio Schvezov
Status: Merged
Approved by: Oliver Grawert
Approved revision: 257
Merged at revision: 258
Proposed branch: lp:~sergiusens/phablet-tools/flash_deprecation_warning
Merge into: lp:phablet-tools
Diff against target: 22 lines (+5/-0)
1 file modified
phablet-flash (+5/-0)
To merge this branch: bzr merge lp:~sergiusens/phablet-tools/flash_deprecation_warning
Reviewer Review Type Date Requested Status
Ubuntu Phablet Team Pending
Review via email: mp+215681@code.launchpad.net

Commit message

phablet-flash: add deprecation warning

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'phablet-flash'
--- phablet-flash 2013-08-09 01:07:55 +0000
+++ phablet-flash 2014-04-14 14:39:47 +0000
@@ -17,6 +17,7 @@
17import logging17import logging
18import os18import os
19import sys19import sys
20import time
2021
21from phabletutils.device import (AndroidBridge, Fastboot)22from phabletutils.device import (AndroidBridge, Fastboot)
22from phabletutils import arguments23from phabletutils import arguments
@@ -40,6 +41,10 @@
40 if not license.has_accepted(accepted_pathname()) and \41 if not license.has_accepted(accepted_pathname()) and \
41 not license.query(settings.legal_notice, accepted_pathname()):42 not license.query(settings.legal_notice, accepted_pathname()):
42 exit(1)43 exit(1)
44 print('\nphablet-flash is deprecated; use ubuntu-device-flash instead\n'
45 'provided by the ubuntu-device-flash package or\n'
46 'go get launchpad.net/goget-ubuntu-touch/ubuntu-device-flash\n')
47 time.sleep(2)
43 try:48 try:
44 project = args.func(args)49 project = args.func(args)
45 if project:50 if project:

Subscribers

People subscribed via source and target branches