Skip to content

Commit

Permalink
generate debian/watch file
Browse files Browse the repository at this point in the history
http://pypi.debian.net/{source}/watch version supports f.e. signatures
which we cannot support here - it needs access to the internet
  • Loading branch information
p1otr committed Apr 21, 2015
1 parent 5b30a51 commit 5d13ef1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions stdeb/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -1374,6 +1374,14 @@ def build_dsc(debinfo,
fd.write('3.0 (quilt)\n')
fd.close()

# K. debian/watch
with open(os.path.join(debian_dir, 'watch'), mode='w') as fd:
fd.write(('# please also check http://pypi.debian.net/{name}/watch\n'
'version=3\n'
'opts=uversionmangle=s/(rc|a|b|c)/~$1/ \\\n'
'http://pypi.debian.net/{name}/{name}-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))').\
format(name=debinfo.module_name))

if debian_dir_only:
return

Expand Down

0 comments on commit 5d13ef1

Please sign in to comment.