[packages/depot_tools] insert PATH also in gclient tool

glen glen at pld-linux.org
Wed Dec 11 22:35:34 CET 2013


commit 676bbd7d28c15b1efd0ec9014faea9f3caedb90d
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Dec 11 23:35:31 2013 +0200

    insert PATH also in gclient tool

 adjust-path.patch | 13 ++++++++++++-
 depot_tools.spec  |  2 +-
 2 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/depot_tools.spec b/depot_tools.spec
index b28ea74..124c0db 100644
--- a/depot_tools.spec
+++ b/depot_tools.spec
@@ -1,5 +1,5 @@
 %define		subver	20131210
-%define		rel		0.11
+%define		rel		0.12
 Summary:	A package of scripts called used to manage checkouts and code reviews
 Name:		depot_tools
 Version:	0.1
diff --git a/adjust-path.patch b/adjust-path.patch
index 41a7668..5eedc4c 100644
--- a/adjust-path.patch
+++ b/adjust-path.patch
@@ -4,8 +4,19 @@
  
  SCRIPT_PATH = os.path.dirname(os.path.abspath(__file__))
  
-+# insert it into $PATH, so wouldn't need to put all interanl bins to $PATH, like download_from_google_storage
++# insert it into $PATH, so wouldn't need to put all internal bins to $PATH, like download_from_google_storage
 +os.environ['PATH'] += os.pathsep + SCRIPT_PATH
  
  #################################################
  # Checkout class definitions.
+--- depot_tools-20131210/gclient.py~	2013-12-10 22:01:22.000000000 +0200
++++ depot_tools-20131210/gclient.py	2013-12-11 23:30:04.595762844 +0200
+@@ -102,6 +102,8 @@
+ import subprocess2
+ from third_party import colorama
+ 
++# insert current script dir into $PATH, so wouldn't need to put all internal bins to $PATH, like download_from_google_storage
++os.environ['PATH'] += os.pathsep + os.path.dirname(os.path.abspath(__file__))
+ 
+ class GClientKeywords(object):
+   class FromImpl(object):
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/depot_tools.git/commitdiff/676bbd7d28c15b1efd0ec9014faea9f3caedb90d



More information about the pld-cvs-commit mailing list