daklib.srcformats

Helper functions for the various source formats

@contact: Debian FTPMaster <ftpmaster@debian.org> @copyright: 2009, 2010 Joerg Jaspert <joerg@debian.org> @copyright: 2009 Chris Lamb <lamby@debian.org> @license: GNU General Public License version 2 or later

Functions

get_format_from_string(txt)

Returns the SourceFormat class that corresponds to the specified .changes Format value.

Classes

FormatOne(name, bases, attrs)

FormatThree(name, bases, attrs)

FormatThreeQuilt(name, bases, attrs)

SourceFormat(name, bases, attrs)

class daklib.srcformats.FormatOne(name, bases, attrs)[source]
disallowed = ('debian_tar', 'more_orig_tar')
format = '1\\.0'
name = '1.0'
re_format = re.compile('1\\.0')
classmethod reject_msgs(has)[source]
requires = ()
class daklib.srcformats.FormatThree(name, bases, attrs)[source]
disallowed = ('orig_tar', 'debian_diff', 'debian_tar', 'more_orig_tar')
format = '3\\.\\d+ \\(native\\)'
name = '3.x (native)'
re_format = re.compile('3\\.\\d+ \\(native\\)')
requires = ('native_tar',)
class daklib.srcformats.FormatThreeQuilt(name, bases, attrs)[source]
disallowed = ('debian_diff', 'native_tar')
format = '3\\.\\d+ \\(quilt\\)'
name = '3.x (quilt)'
re_format = re.compile('3\\.\\d+ \\(quilt\\)')
requires = ('orig_tar', 'debian_tar')
class daklib.srcformats.SourceFormat(name, bases, attrs)[source]
classmethod reject_msgs(has)[source]
daklib.srcformats.get_format_from_string(txt)[source]

Returns the SourceFormat class that corresponds to the specified .changes Format value. If the string does not match any class, UnknownFormatError is raised.