]> git.pld-linux.org Git - packages/depot_tools.git/commitdiff
add depot_tools bindir to $PATH
authorElan Ruusamäe <glen@delfi.ee>
Wed, 11 Dec 2013 19:54:35 +0000 (21:54 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 11 Dec 2013 19:54:35 +0000 (21:54 +0200)
adjust-path.patch [new file with mode: 0644]
depot_tools.spec

diff --git a/adjust-path.patch b/adjust-path.patch
new file mode 100644 (file)
index 0000000..41a7668
--- /dev/null
@@ -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.
index 40e63f5eeeb539f0166b51f2910585299cd0e886..ca3584c67cbd212a722047976ba93156244946ca 100644 (file)
@@ -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
This page took 0.05232 seconds and 4 git commands to generate.