Trees | Indices | Help |
|
---|
|
provides some debian source package related helpers
|
|||
NoChangelogError no changelog found |
|||
ParseChangeLogError problem parsing changelog |
|||
DpkgCompareVersions | |||
UpstreamSource Upstream source. |
|||
DscFile Keeps all needed data read from a dscfile |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
tuple |
|
||
|
|||
|
|||
|
|||
|
|
|||
debian_version_chars =
|
|||
packagename_re = re.compile(r'^
|
|||
packagename_msg =
|
|||
upstreamversion_re = re.compile(r'^
|
|||
upstreamversion_msg =
|
|||
compressor_opts =
|
|||
compressor_aliases =
|
|||
__package__ =
|
|
Parse the content of a changelog file. Either contents, containing the contents of a changelog file, or filename, pointing to a changelog file must be passed. Returns: cp['Version']: full version string including epoch cp['Upstream-Version']: upstream version, if not debian native cp['Debian-Version']: debian release cp['Epoch']: epoch, if any cp['NoEpoch-Version']: full version string excluding epoch |
The name of the orig file belonging to changelog cp >>> orig_file({'Source': 'foo', 'Upstream-Version': '1.0'}, "bzip2") 'foo_1.0.orig.tar.bz2' >>> orig_file({'Source': 'bar', 'Upstream-Version': '0.0~git1234'}, "xz") 'bar_0.0~git1234.orig.tar.xz' |
Is this a debian native package >>> is_native(dict(Version="1")) True >>> is_native(dict(Version="1-1")) False |
Given an orig file return the compression used >>> get_compression("abc.tar.gz") 'gzip' >>> get_compression("abc.tar.bz2") 'bzip2' >>> get_compression("abc.tar.foo") >>> get_compression("abc") |
symlink orig.tar.gz from orig_dir to output_dir
|
Parse the uscan output return (True, tarball) if a new version was downloaded and could be located. If the tarball can't be located it returns (True, None). Returns (False, None) if the current version is up to date. >>> parse_uscan("<status>up to date</status>") (False, None) >>> parse_uscan("<target>virt-viewer_0.4.0.orig.tar.gz</target>") (True, '../virt-viewer_0.4.0.orig.tar.gz')
|
guess the package name and version from the filename of an upstgream archive. Returns a tuple with package name and version, or None. @param archive: filename to guess to version for @param extra_regex: additional regex to apply, needs a 'package' and a 'version' group >>> guess_upstream_version('foo-bar_0.2.orig.tar.gz') ('foo-bar', '0.2') >>> guess_upstream_version('foo-Bar_0.2.orig.tar.gz') >>> guess_upstream_version('git-bar-0.2.tar.gz') ('git-bar', '0.2') >>> guess_upstream_version('git-bar-0.2-rc1.tar.gz') ('git-bar', '0.2-rc1') >>> guess_upstream_version('git-bar-0.2:~-rc1.tar.gz') ('git-bar', '0.2:~-rc1') >>> guess_upstream_version('git-Bar-0A2d:rc1.tar.bz2') ('git-Bar', '0A2d:rc1') >>> guess_upstream_version('git-1.tar.bz2') ('git', '1') >>> guess_upstream_version('kvm_87+dfsg.orig.tar.gz') ('kvm', '87+dfsg') >>> guess_upstream_version('foo-Bar_0.2.orig.tar.gz') >>> guess_upstream_version('foo-Bar-a.b.tar.gz') |
|
packagename_msg
|
upstreamversion_msg
|
compressor_opts
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Aug 10 22:03:39 2011 | http://epydoc.sourceforge.net |