Merge lp:~liuyq0307/lava-dashboard-tool/fix-887963 into lp:lava-dashboard-tool

Proposed by Yongqin Liu
Status: Superseded
Proposed branch: lp:~liuyq0307/lava-dashboard-tool/fix-887963
Merge into: lp:lava-dashboard-tool
Diff against target: 12 lines (+1/-1)
1 file modified
lava_dashboard_tool/commands.py (+1/-1)
To merge this branch: bzr merge lp:~liuyq0307/lava-dashboard-tool/fix-887963
Reviewer Review Type Date Requested Status
Zygmunt Krynicki (community) Needs Fixing
Review via email: mp+81716@code.launchpad.net

This proposal has been superseded by a proposal from 2011-11-09.

Description of the change

normalize the default output name when not specified.
but because not very clear about the name used to be,
so if the normalize policy has problem, please point out.
And there is the possibility that the name or the location path is too long, but here ignore this case.

To post a comment you must log in.
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

This is still somewhat tricky, could you please change it to default to the SHA of the bundle instead? That is safe and unambiguous.

Thanks for fixing this :)

review: Needs Fixing
Revision history for this message
Yongqin Liu (liuyq0307) wrote :

> This is still somewhat tricky, could you please change it to default to the
> SHA of the bundle instead? That is safe and unambiguous.
Right, that's good.

156. By Yongqin Liu

modify to use SHA according to the review comment

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'lava_dashboard_tool/commands.py'
--- lava_dashboard_tool/commands.py 2011-07-21 16:44:24 +0000
+++ lava_dashboard_tool/commands.py 2011-11-09 12:29:22 +0000
@@ -508,7 +508,7 @@
508 def invoke_remote(self):508 def invoke_remote(self):
509 response = self.server.get(self.args.SHA1)509 response = self.server.get(self.args.SHA1)
510 if self.args.output is None:510 if self.args.output is None:
511 filename = response['content_filename']511 filename = self.args.SHA1
512 if os.path.exists(filename) and not self.args.overwrite:512 if os.path.exists(filename) and not self.args.overwrite:
513 print >> sys.stderr, "File {filename!r} already exists".format(513 print >> sys.stderr, "File {filename!r} already exists".format(
514 filename=filename)514 filename=filename)

Subscribers

People subscribed via source and target branches