Hi!
When packaging nodejs-lodash, I noticed this error:
DEBUG: Traceback (most recent call last):
DEBUG: File "/usr/lib/rpm/nodejs.req", line 148, in <module>
DEBUG: main()
DEBUG: File "/usr/lib/rpm/nodejs.req", line 55, in main
DEBUG: deps += process_dep(req, metadata['engines']['node'])
DEBUG: TypeError: list indices must be integers, not unicode
DEBUG: Provides: nodejs-lodash = 1.3.1-1.fc19 npm(lodash) = 1.3.1
DEBUG: Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
The reason appears to be because it's package.json doesn't specify a
version for node:
"engines": [
"node",
"rhino"
],
I attached a patch for nodejs-packaging with a simple workaround, though
it's possible another approach is better.
Also, is this considered a broken/non-compliant package.json? If so,
I'll send a pull request to lodash to fix this. (I've already patched
the package.json in the package to specify '*' as the version as a
workaround.)
Kind regards,
--
Jamie Nguyen