[nodejs/f19] nodejs-symlink-deps: symlink devDependencies when --check is used

T.C. Hollingsworth patches at fedoraproject.org
Wed Apr 3 21:39:00 UTC 2013


commit af5d69509025f0fd39e86d418a33498a066033ba
Author: T.C. Hollingsworth <tchollingsworth at gmail.com>
Date:   Wed Apr 3 14:32:56 2013 -0700

    nodejs-symlink-deps: symlink devDependencies when --check is used

 nodejs-symlink-deps |    7 +++++++
 nodejs.spec         |    1 +
 2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/nodejs-symlink-deps b/nodejs-symlink-deps
index 6259c9b..258607c 100755
--- a/nodejs-symlink-deps
+++ b/nodejs-symlink-deps
@@ -56,3 +56,10 @@ for path in modules:
             
             if os.path.exists(target):
                 os.symlink(target, dep)
+
+        if check and '--no-devdeps' not in sys.argv and 'devDependencies' in md:
+            for dep in md['devDependencies']:
+                target = os.path.join(sitelib, dep)
+        
+                if os.path.exists(target):
+                    os.symlink(target, dep)
diff --git a/nodejs.spec b/nodejs.spec
index bed8157..5725756 100644
--- a/nodejs.spec
+++ b/nodejs.spec
@@ -192,6 +192,7 @@ cp -p common.gypi %{buildroot}%{_datadir}/node
 - new upstream release 0.10.3
   http://blog.nodejs.org/2013/04/03/node-v0-10-3-stable/
 - nodejs-symlink-deps: only create symlink if target exists
+- nodejs-symlink-deps: symlink devDependencies when --check is used
 
 * Sun Mar 31 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 0.10.2-1
 - new upstream release 0.10.2


More information about the scm-commits mailing list