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
1=== modified file 'phablet-flash'
2--- phablet-flash 2013-08-09 01:07:55 +0000
3+++ phablet-flash 2014-04-14 14:39:47 +0000
4@@ -17,6 +17,7 @@
5 import logging
6 import os
7 import sys
8+import time
9
10 from phabletutils.device import (AndroidBridge, Fastboot)
11 from phabletutils import arguments
12@@ -40,6 +41,10 @@
13 if not license.has_accepted(accepted_pathname()) and \
14 not license.query(settings.legal_notice, accepted_pathname()):
15 exit(1)
16+ print('\nphablet-flash is deprecated; use ubuntu-device-flash instead\n'
17+ 'provided by the ubuntu-device-flash package or\n'
18+ 'go get launchpad.net/goget-ubuntu-touch/ubuntu-device-flash\n')
19+ time.sleep(2)
20 try:
21 project = args.func(args)
22 if project:

Subscribers

People subscribed via source and target branches