[nodejs-with/f20] Fix symlink when running tests (take two)

Jamie Nguyen jamielinux at fedoraproject.org
Mon Mar 3 22:17:20 UTC 2014


commit eb2a4c52be3f07e7ad9af0458b526e3ff6ee1759
Author: Jamie Nguyen <j at jamielinux.com>
Date:   Mon Mar 3 22:16:34 2014 +0000

    Fix symlink when running tests (take two)

 nodejs-with.spec |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/nodejs-with.spec b/nodejs-with.spec
index 92d54ca..ae4437c 100644
--- a/nodejs-with.spec
+++ b/nodejs-with.spec
@@ -4,7 +4,7 @@
 
 Name:       nodejs-with
 Version:    3.0.0
-Release:    2%{?dist}
+Release:    3%{?dist}
 Summary:    Compile time `with` for strict mode JavaScript
 License:    MIT
 Group:      System Environment/Libraries
@@ -59,7 +59,9 @@ cp -pr package.json index.js vars.js \
 %if 0%{?enable_tests}
 %check
 %nodejs_symlink_deps --check
-ln -sf /usr/lib/node_modules/uglify-js node_modules/uglify-js
+if [ ! -d node_modules/uglify-js ]; then
+    ln -sf /usr/lib/node_modules/uglify-js node_modules/uglify-js
+fi
 /usr/bin/mocha -R spec
 %endif
 
@@ -70,6 +72,9 @@ ln -sf /usr/lib/node_modules/uglify-js node_modules/uglify-js
 
 
 %changelog
+* Mon Mar 03 2014 Jamie Nguyen <jamielinux at fedoraproject.org> - 3.0.0-3
+- fix symlink when running tests
+
 * Mon Mar 03 2014 Jamie Nguyen <jamielinux at fedoraproject.org> - 3.0.0-2
 - fix symlink when running tests
 


More information about the scm-commits mailing list