[Pkg-javascript-devel] Bug#960939: npm2deb: when trying to create a package from a specific version, it considers version as integer
Pirate Praveen
praveen at onenetbeyond.org
Mon May 18 16:42:17 BST 2020
Package: npm2deb
Version: 0.3.0-4
Severity: important
$ npm2deb create less-loader at 4.0
Traceback (most recent call last):
File "/usr/bin/npm2deb", line 7, in <module>
sys.exit(main(sys.argv))
File "/usr/lib/python3/dist-packages/npm2deb/scripts.py", line 157,
in main
args.func(args)
File "/usr/lib/python3/dist-packages/npm2deb/scripts.py", line 288,
in create
npm2deb = get_npm2deb_instance(args)
File "/usr/lib/python3/dist-packages/npm2deb/scripts.py", line 309,
in get_npm2deb_instance
return _Npm2Deb(args=vars(args))
File "/usr/lib/python3/dist-packages/npm2deb/__init__.py", line 57,
in __init__
self.read_package_info()
File "/usr/lib/python3/dist-packages/npm2deb/__init__.py", line 406,
in read_package_info
self.name = self.json['name']
TypeError: list indices must be integers or slices, not str
If we give version as 4.1.0 it works. less-loader at 4 or less-loader at 4.0
should work as well.
pravi at mahishi:~/forge/js-team$ npm2deb create less-loader at 4.1.0
More information about the Pkg-javascript-devel
mailing list