[nodejs/el6] nodejs-fixdep: work properly when a package has no dependencies (cherry picked from commit d0c6d3a9e
T.C. Hollingsworth
patches at fedoraproject.org
Mon May 6 21:34:56 UTC 2013
commit d0a4209bc05ad807e146eb2ff544ad14555d5df9
Author: T.C. Hollingsworth <tchollingsworth at gmail.com>
Date: Mon May 6 14:34:09 2013 -0700
nodejs-fixdep: work properly when a package has no dependencies
(cherry picked from commit d0c6d3a9e244d1c7199907dabf7089d5c0089480)
nodejs-fixdep | 2 +-
nodejs.spec | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/nodejs-fixdep b/nodejs-fixdep
index 5f1ed40..44e79f4 100755
--- a/nodejs-fixdep
+++ b/nodejs-fixdep
@@ -32,7 +32,7 @@ if not os.path.exists('package.json~'):
md = json.load(open('package.json'))
-if not md['dependencies']:
+if 'dependencies' not in md:
md['dependencies'] = {}
if sys.argv[1] == '-r':
diff --git a/nodejs.spec b/nodejs.spec
index 5728144..b605713 100644
--- a/nodejs.spec
+++ b/nodejs.spec
@@ -1,6 +1,6 @@
Name: nodejs
Version: 0.10.5
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: JavaScript runtime
License: MIT and ASL 2.0 and ISC and BSD
Group: Development/Languages
@@ -186,6 +186,9 @@ cp -p common.gypi %{buildroot}%{_datadir}/node
%{_defaultdocdir}/%{name}-docs-%{version}
%changelog
+* Mon May 06 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 0.10.5-3
+- nodejs-fixdep: work properly when a package has no dependencies
+
* Mon Apr 29 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 0.10.5-2
- nodejs-symlink-deps: make it work when --check is used and just
devDependencies exist
More information about the scm-commits
mailing list