|
|
parse_dsc(dscfile)
parse dsc by creating a DscFile object |
|
|
|
|
parse_changelog_repo(repo,
branch,
filename)
Parse the changelog file from given branch in the git repository. |
|
|
|
|
parse_changelog(contents=None,
filename=None)
Parse the content of a changelog file. |
|
|
|
|
orig_file(cp,
compression)
The name of the orig file belonging to changelog cp |
|
|
|
|
is_native(cp)
Is this a debian native package |
|
|
|
|
is_valid_packagename(name)
Is this a valid Debian package name? |
|
|
|
|
is_valid_upstreamversion(version)
Is this a valid upstream version number? |
|
|
|
|
|
|
|
has_epoch(cp)
Does the topmost version number in the changelog contain an epoch
>>> has_epoch(dict(Epoch="1")) True >>>
has_epoch(dict()) False |
|
|
|
|
has_orig(cp,
compression,
dir)
Check if orig.tar.gz exists in dir |
|
|
|
|
symlink_orig(cp,
compression,
orig_dir,
output_dir,
force=False)
symlink orig.tar.gz from orig_dir to output_dir |
|
|
|
tuple
|
parse_uscan(out)
Parse the uscan output return (True, tarball) if a new version was
downloaded and could be located. |
|
|
|
|
do_uscan()
invoke uscan to fetch a new upstream version |
|
|
|
|
|
|
|
compare_versions(version1,
version2)
compares to Debian versionnumbers suitable for sort() |
|
|
|
|
debian_version_chars = 'a-zA-Z\\d.~+-'
|
|
|
packagename_re = re.compile(r'^[a-z0-9][a-z0-9\.\+-]+$')
|
|
|
packagename_msg = 'Package names must be at least two characte...
|
|
|
upstreamversion_re = re.compile(r'^[0-9][a-z0-9\.\+-:~]*$')
|
|
|
upstreamversion_msg = 'Upstream version numbers must start wit...
|
|
|
compressor_opts = {'bzip2': ['', 'bz2'], 'gzip': ['-n', 'gz'],...
|
|
|
compressor_aliases = {'bz2': 'bzip2', 'gz': 'gzip'}
|
|
|
__package__ = 'gbp'
|