Skip to content

Commit

Permalink
Add support for debian/watch
Browse files Browse the repository at this point in the history
  • Loading branch information
smurfix committed Jul 3, 2020
1 parent 99d74f1 commit 02e9026
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 @@ -1346,6 +1346,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 02e9026

Please sign in to comment.