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

Issue 10939008: Do not assume gclient is in the PATH. (Closed)

Created:
8 years, 3 months ago by M-A Ruel
Modified:
8 years, 3 months ago
CC:
chromium-reviews, Dirk Pranke, cmp+cc_chromium.org, M-A Ruel, erikwright (departed), Cait (Slow)
Visibility:
Public.

Description

Do not assume gclient is in the PATH. Also specify the batch file on Windows. Python's subprocess is picky about that. TBR=rogerta@chromium.org BUG= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=157337

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -1 line) Patch
M apply_issue.py View 2 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
M-A Ruel
8 years, 3 months ago (2012-09-18 01:01:28 UTC) #1
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
8 years, 3 months ago (2012-09-18 10:31:27 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maruel@chromium.org/10939008/1
8 years, 3 months ago (2012-09-18 10:31:50 UTC) #3
commit-bot: I haz the power
Change committed as 157337
8 years, 3 months ago (2012-09-18 10:34:26 UTC) #4
Roger Tawa OOO till Jul 10th
8 years, 3 months ago (2012-09-18 13:02:15 UTC) #5
Lgtm
On Sep 17, 2012 9:01 PM, <maruel@chromium.org> wrote:

> Reviewers: Roger Tawa,
>
> Description:
> Do not assume gclient is in the PATH.
>
> Also specify the batch file on Windows. Python's subprocess is picky about
> that.
>
> R=rogerta@chromium.org
> BUG=
>
>
> Please review this at
https://codereview.chromium.**org/10939008/<https://codereview.chromium.org/1...
>
> SVN Base:
svn://svn.chromium.org/chrome/**trunk/tools/depot_tools<http://svn.chromium.org/chrome/trunk/tools/depot_tools>
>
> Affected files:
>   M apply_issue.py
>
>
> Index: apply_issue.py
> diff --git a/apply_issue.py b/apply_issue.py
> index 3b3f1f4c1db22907a1b082cb293cce**875c33000e..**
> 8b50b37e50a53b76c5328e92512e7d**4463dd43c8 100755
> --- a/apply_issue.py
> +++ b/apply_issue.py
> @@ -22,6 +22,8 @@ import gclient_utils
>  import rietveld
>  import scm
>
> +BASE_DIR = os.path.dirname(os.path.**abspath(__file__))
> +
>
>  def main():
>    parser = optparse.OptionParser(**description=sys.modules[__**
> name__].__doc__)
> @@ -119,8 +121,11 @@ def main():
>            'A DEPS file was updated inside a gclient checkout, running
> gclient '
>            'sync.')
>        base_rev = 'BASE' if scm_type == 'svn' else 'HEAD'
> +      gclient_path = os.path.join(BASE_DIR, 'gclient')
> +      if sys.platform == 'win32':
> +        gclient_path += '.bat'
>        return subprocess.call(
> -          ['gclient', 'sync', '--revision', base_rev], cwd=gclient_root)
> +          [gclient_path, 'sync', '--revision', base_rev],
> cwd=gclient_root)
>    return 0
>
>
>
>
>

Powered by Google App Engine
This is Rietveld 408576698