Skip to content

Commit

Permalink
add upstream homepage as option
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoIannacone committed Jun 23, 2014
1 parent 8f6fb63 commit 53f1e2b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions npm2deb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ def __init__(self, module_name=None, args={}):
self.upstream_license = args['upstream_license']
if 'upstream_author' in args and args['upstream_author']:
self.upstream_author = args['upstream_author']
if 'upstream_homepage' in args and args['upstream_homepage']:
self.homepage = args['upstream_homepage']
if 'debian_license' in args and args['debian_license']:
self.debian_license = args['debian_license']
if 'standards_version' in args and args['standards_version']:
Expand Down Expand Up @@ -401,6 +403,8 @@ def _get_json_repo_url(self):
self.upstream_repo_url = result

def _get_json_homepage(self):
if self.homepage:
return
result = 'FIX_ME homepage'
if 'homepage' in self.json:
result = self.json['homepage']
Expand Down
3 changes: 3 additions & 0 deletions npm2deb/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ def main(argv=None):
parser_create.add_argument(
'--upstream-author', default=None,
help='set upstream author if not automatically recognized')
parser_create.add_argument(
'--upstream-homepage', default=None,
help='set upstream homepage if not automatically recognized')
parser_create.add_argument(
'--upstream-license', default=None,
help='set upstream license if not automatically recognized')
Expand Down

0 comments on commit 53f1e2b

Please # to comment.