[packages/depot_tools] add depot_tools bindir to $PATH
glen
glen at pld-linux.org
Wed Dec 11 20:55:25 CET 2013
commit 407fa93464372d9fccc7f4cd33db302fb2b4a6d5
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Dec 11 21:54:35 2013 +0200
add depot_tools bindir to $PATH
adjust-path.patch | 11 +++++++++++
depot_tools.spec | 4 +++-
2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/depot_tools.spec b/depot_tools.spec
index 40e63f5..ca3584c 100644
--- a/depot_tools.spec
+++ b/depot_tools.spec
@@ -1,5 +1,5 @@
%define snap 20130619
-%define rel 0.9
+%define rel 0.10
Summary: A package of scripts called used to manage checkouts and code reviews
Name: depot_tools
Version: 0.1
@@ -8,6 +8,7 @@ License: BSD
Group: Development/Tools
Source0: https://src.chromium.org/svn/trunk/tools/depot_tools.zip?/%{name}-svn%{snap}.zip
# Source0-md5: 6cf6483d6da8d15848cbaa8857aae3ae
+Patch0: adjust-path.patch
URL: http://dev.chromium.org/developers/how-tos/depottools
BuildRequires: unzip
Requires: python
@@ -45,6 +46,7 @@ development process. It contains the following utilities:
%setup -qc
mv depot_tools/* .
rm -r depot_tools
+%patch0 -p1
cat > py-wrap.sh <<'EOF'
#!/bin/sh
diff --git a/adjust-path.patch b/adjust-path.patch
new file mode 100644
index 0000000..41a7668
--- /dev/null
+++ b/adjust-path.patch
@@ -0,0 +1,11 @@
+--- depot_tools-0.1/fetch.py~ 2013-06-19 17:56:10.000000000 +0300
++++ depot_tools-0.1/fetch.py 2013-12-11 21:22:06.260143708 +0200
+@@ -29,6 +29,8 @@
+
+ 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
++os.environ['PATH'] += os.pathsep + SCRIPT_PATH
+
+ #################################################
+ # Checkout class definitions.
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/depot_tools.git/commitdiff/6b596ff647a9b7028d85f738ce841ad2ec1a2f6a
More information about the pld-cvs-commit
mailing list