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

Proposed by Sergio Schvezov
Status: Merged
Approved by: Sergio Schvezov
Approved revision: 211
Merged at revision: 217
Proposed branch: lp:~sergiusens/phablet-tools/1233800
Merge into: lp:phablet-tools
Diff against target: 12 lines (+2/-0)
1 file modified
phabletutils/environment.py (+2/-0)
To merge this branch: bzr merge lp:~sergiusens/phablet-tools/1233800
Reviewer Review Type Date Requested Status
Alan Pope 🍺🐧🐱 πŸ¦„ (community) Approve
Sergio Schvezov Needs Resubmitting
PS Jenkins bot continuous-integration Approve
Andy Doan (community) Approve
Review via email: mp+192062@code.launchpad.net

Commit message

Provide some information of revision/version and channel used when flashing

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Andy Doan (doanac) wrote :

Seems okay. I'd almost prefer ditching the time.sleep stuff and use an option like "--dryrun" that just dumps that info and exits. If you prefer keeping it this way, there's a small punctuation nitpick:

Please add a space after the period here:
+ print('\n\nFlashing revision %s from channel %s.'
ie:
  print('\n\nFlashing revision %s from channel %s. '

review: Approve
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

On Mon, Oct 21, 2013 at 11:50 PM, Andy Doan <email address hidden>wrote:

> Review: Approve
>
> Seems okay. I'd almost prefer ditching the time.sleep stuff and use an
> option like "--dryrun" that just dumps that info and exits. If you prefer
> keeping it this way, there's a small punctuation nitpick:
>

The sleep is from the bug report :-) If popey agrees, I can then modify.

Please add a space after the period here:
> + print('\n\nFlashing revision %s from channel %s.'
> ie:
> print('\n\nFlashing revision %s from channel %s. '
>

Good catch, I really don't like having those non spaced EOSs :-)

Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) wrote :

I agree, a dry run or simulate would probably be more consistent with our other tools than a "run and then ctrl+c if it's wrong" which I originally suggested, even though I'd prefer that personally, it seems wrong.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
lp:~sergiusens/phablet-tools/1233800 updated
211. By Sergio Schvezov

Logging channel and version

Revision history for this message
Sergio Schvezov (sergiusens) wrote :

I'm just logging now with no message about cancelling and would rather add the dryrun as a different bug report as it involves adding the option to everything

review: Needs Resubmitting
Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) wrote :

Dryrun option added as bug 1245512

Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'phabletutils/environment.py'
2--- phabletutils/environment.py 2013-10-15 19:30:43 +0000
3+++ phabletutils/environment.py 2013-10-28 14:16:01 +0000
4@@ -163,6 +163,8 @@
5 download_dir_part = os.path.join(download_dir_part, base_uri)
6 download_dir = downloads.get_full_path(download_dir_part)
7
8+ log.info('Flashing revision %s from channel %s' %
9+ (json['version'], args.channel))
10 files, command_part = ubuntuimage.get_files(download_dir, uri, json)
11 return projects.UbuntuTouchSystem(
12 file_list=files,

Subscribers

People subscribed via source and target branches