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 a1e4995..255b7cb 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 @@ -188,6 +188,9 @@ cp -p common.gypi %{buildroot}%{_datadir}/node %{_defaultdocdir}/%{name}-docs-%{version} %changelog +* Mon May 06 2013 T.C. Hollingsworth - 0.10.5-3 +- nodejs-fixdep: work properly when a package has no dependencies + * Mon Apr 29 2013 T.C. Hollingsworth - 0.10.5-2 - nodejs-symlink-deps: make it work when --check is used and just devDependencies exist