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

Issue 395483002: Fixes bug in path handling of analyzer (Closed)

Created:
6 years, 5 months ago by sky
Modified:
6 years, 5 months ago
Reviewers:
Mark Mentovai
CC:
gyp-developer_googlegroups.com
Visibility:
Public.

Description

Fixes bug in path handling of analyzer Was using os.getcwd when it needs to use options.toplevel_dir R=mark@chromium.org BUG=383609 TEST=none

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -31 lines) Patch
M pylib/gyp/generator/analyzer.py View 1 2 3 4 5 7 chunks +41 lines, -31 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
sky
6 years, 5 months ago (2014-07-14 18:04:18 UTC) #1
Mark Mentovai
https://codereview.chromium.org/395483002/diff/1/pylib/gyp/generator/analyzer.py File pylib/gyp/generator/analyzer.py (right): https://codereview.chromium.org/395483002/diff/1/pylib/gyp/generator/analyzer.py#newcode40 pylib/gyp/generator/analyzer.py:40: if path.startswith(toplevel_dir): This should be if path == toplevel_dir ...
6 years, 5 months ago (2014-07-14 18:10:55 UTC) #2
sky
How about this?
6 years, 5 months ago (2014-07-14 19:03:08 UTC) #3
Mark Mentovai
I don’t really think this is so great. You shouldn’t need to add slashes to ...
6 years, 5 months ago (2014-07-14 19:14:14 UTC) #4
sky
I think my path handling was a bit messed up. Take another look?
6 years, 5 months ago (2014-07-15 00:06:30 UTC) #5
sky
On 2014/07/15 00:06:30, sky wrote: > I think my path handling was a bit messed ...
6 years, 5 months ago (2014-07-16 14:36:56 UTC) #6
Mark Mentovai
https://codereview.chromium.org/395483002/diff/60001/pylib/gyp/generator/analyzer.py File pylib/gyp/generator/analyzer.py (right): https://codereview.chromium.org/395483002/diff/60001/pylib/gyp/generator/analyzer.py#newcode93 pylib/gyp/generator/analyzer.py:93: if target.startswith(toplevel_dir): I still think this is wrong. Now ...
6 years, 5 months ago (2014-07-16 15:48:42 UTC) #7
sky
Hopefully I got it this time around. Take another look?
6 years, 5 months ago (2014-07-16 18:26:35 UTC) #8
Mark Mentovai
https://codereview.chromium.org/395483002/diff/80001/pylib/gyp/generator/analyzer.py File pylib/gyp/generator/analyzer.py (right): https://codereview.chromium.org/395483002/diff/80001/pylib/gyp/generator/analyzer.py#newcode99 pylib/gyp/generator/analyzer.py:99: if os.sep == '\\' and os.altsep == '/': I ...
6 years, 5 months ago (2014-07-16 20:28:17 UTC) #9
sky
https://codereview.chromium.org/395483002/diff/80001/pylib/gyp/generator/analyzer.py File pylib/gyp/generator/analyzer.py (right): https://codereview.chromium.org/395483002/diff/80001/pylib/gyp/generator/analyzer.py#newcode99 pylib/gyp/generator/analyzer.py:99: if os.sep == '\\' and os.altsep == '/': On ...
6 years, 5 months ago (2014-07-16 21:14:55 UTC) #10
Mark Mentovai
6 years, 5 months ago (2014-07-16 22:41:32 UTC) #11
LGTM

Powered by Google App Engine
This is Rietveld 408576698