nodejs-fixdep: work properly when a package has no dependencies
This commit is contained in:
parent
e0f6b9832c
commit
d0c6d3a9e2
@ -32,7 +32,7 @@ if not os.path.exists('package.json~'):
|
|||||||
|
|
||||||
md = json.load(open('package.json'))
|
md = json.load(open('package.json'))
|
||||||
|
|
||||||
if not md['dependencies']:
|
if 'dependencies' not in md:
|
||||||
md['dependencies'] = {}
|
md['dependencies'] = {}
|
||||||
|
|
||||||
if sys.argv[1] == '-r':
|
if sys.argv[1] == '-r':
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Name: nodejs
|
Name: nodejs
|
||||||
Version: 0.10.5
|
Version: 0.10.5
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: JavaScript runtime
|
Summary: JavaScript runtime
|
||||||
License: MIT and ASL 2.0 and ISC and BSD
|
License: MIT and ASL 2.0 and ISC and BSD
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
@ -188,6 +188,9 @@ cp -p common.gypi %{buildroot}%{_datadir}/node
|
|||||||
%{_defaultdocdir}/%{name}-docs-%{version}
|
%{_defaultdocdir}/%{name}-docs-%{version}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon May 06 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.5-3
|
||||||
|
- nodejs-fixdep: work properly when a package has no dependencies
|
||||||
|
|
||||||
* Mon Apr 29 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.5-2
|
* Mon Apr 29 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.5-2
|
||||||
- nodejs-symlink-deps: make it work when --check is used and just
|
- nodejs-symlink-deps: make it work when --check is used and just
|
||||||
devDependencies exist
|
devDependencies exist
|
||||||
|
Loading…
Reference in New Issue
Block a user