Skip to content

Commit

Permalink
Merge pull request #31 from shanavas786/fix-files-npm1.4
Browse files Browse the repository at this point in the history
Fix for npm v1.4
  • Loading branch information
LeoIannacone authored Nov 3, 2016
2 parents 43eb030 + 61199f6 commit 7636425
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion npm2deb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,12 @@ def create_install(self):

# install files from files field
if 'files' in self.json:
libs = libs.union(self.json['files'])
files = self.json['files']
# npm v1.4 returns string if files field has only one entry
if isinstance(files, str):
libs.add(files)
else:
libs = libs.union(files)

# install main if not in a subpath
if 'main' in self.json:
Expand Down

0 comments on commit 7636425

Please sign in to comment.