- @classmethod
- def validate_format(cls, format, is_a_dsc=False, field='files'):
- if is_a_dsc:
- if format != (1,0) and \
- format != (3,0,"quilt") and format != (3,0,"native"):
- raise UnknownFormatError, repr(format)
- else:
- if (format < (1,5) or format > (1,8)):
- raise UnknownFormatError, repr(format)
- if field != "files" and format < (1,8):
- raise UnknownFormatError, repr(format)
-