1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
Description: create links in debian/nodejs/links, not debian/links
Author: Yadd <yadd@debian.org>
Forwarded: no
Last-Update: 2021-12-23
--- a/npm2deb/__init__.py
+++ b/npm2deb/__init__.py
@@ -259,10 +259,11 @@
if 'bin' in self.json:
for script in self.json['bin']:
orig = _os.path.normpath(self.json['bin'][script])
- links.append("%s/%s usr/bin/%s" % (dest, orig, script))
+ links.append("%s/%s /usr/bin/%s" % (self.name, orig, script))
if len(links) > 0:
content = '\n'.join(links)
- utils.create_debian_file('links', content)
+ utils.create_dir("debian/nodejs")
+ utils.create_debian_file('nodejs/links', content)
def create_docs(self):
docs = []
|