Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Issue 10837028: create_nmf improvements (Closed)

Created:
8 years, 4 months ago by Sam Clegg
Modified:
8 years, 4 months ago
Reviewers:
noelallen1, binji
CC:
chromium-reviews, pam+watch_chromium.org
Visibility:
Public.

Description

Several improvements to create_nmf.py Add -v/--verbose so you can see what the tool is doing. Fix for StageDependencies so that it treats the main files in the same special way that _GenerateManifest does. The current behavior creates duplicate nested copies of of the all main (.nexe) files you pass it. Remove trailing whitespace. Add a __repr__ for ArchFile so printing them is less opaque. Remove ErrorOut in favor of Error exception. Calling sys.exit() all over the place makes things like unit testing harder. Error exception is now caught in the main entry point so the user doesn't see stack traces for errors. BUG= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149557

Patch Set 1 #

Patch Set 2 : #

Total comments: 20

Patch Set 3 : fixed mostly style stuff #

Patch Set 4 : ignore EEXISTS exception from makedirs. also add --debug/-d option #

Patch Set 5 : function attributes are not internal to the function so don't have "_" on them #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -31 lines) Patch
M native_client_sdk/src/tools/create_nmf.py View 1 2 3 4 12 chunks +69 lines, -31 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
binji
http://codereview.chromium.org/10837028/diff/2001/native_client_sdk/src/tools/create_nmf.py File native_client_sdk/src/tools/create_nmf.py (right): http://codereview.chromium.org/10837028/diff/2001/native_client_sdk/src/tools/create_nmf.py#newcode88 native_client_sdk/src/tools/create_nmf.py:88: return "ArchFile: %s" % self.path repr(foo) is usually "<foo ...
8 years, 4 months ago (2012-08-01 04:06:46 UTC) #1
Sam Clegg
http://codereview.chromium.org/10837028/diff/2001/native_client_sdk/src/tools/create_nmf.py File native_client_sdk/src/tools/create_nmf.py (right): http://codereview.chromium.org/10837028/diff/2001/native_client_sdk/src/tools/create_nmf.py#newcode88 native_client_sdk/src/tools/create_nmf.py:88: return "ArchFile: %s" % self.path On 2012/08/01 04:06:46, binji ...
8 years, 4 months ago (2012-08-01 17:21:03 UTC) #2
binji
lgtm http://codereview.chromium.org/10837028/diff/2001/native_client_sdk/src/tools/create_nmf.py File native_client_sdk/src/tools/create_nmf.py (right): http://codereview.chromium.org/10837028/diff/2001/native_client_sdk/src/tools/create_nmf.py#newcode259 native_client_sdk/src/tools/create_nmf.py:259: if source.endswith('.nexe') and source in self.main_files: ok http://codereview.chromium.org/10837028/diff/2001/native_client_sdk/src/tools/create_nmf.py#newcode266 ...
8 years, 4 months ago (2012-08-01 18:05:20 UTC) #3
Sam Clegg
I also add a --debug/-d option to enable _debug_mode dynamically. http://codereview.chromium.org/10837028/diff/2001/native_client_sdk/src/tools/create_nmf.py File native_client_sdk/src/tools/create_nmf.py (right): http://codereview.chromium.org/10837028/diff/2001/native_client_sdk/src/tools/create_nmf.py#newcode266 ...
8 years, 4 months ago (2012-08-01 18:26:39 UTC) #4
binji
slgtm :)
8 years, 4 months ago (2012-08-01 22:56:16 UTC) #5
Sam Clegg
8 years, 4 months ago (2012-08-01 23:01:15 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sbc@chromium.org/10837028/4003
8 years, 4 months ago (2012-08-01 23:09:12 UTC) #7
commit-bot: I haz the power
8 years, 4 months ago (2012-08-02 01:52:26 UTC) #8
Change committed as 149557

Powered by Google App Engine
This is Rietveld 408576698