#!/usr/bin/env python
-# Checks Debian packages from Incoming
+""" Checks Debian packages from Incoming """
# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006 James Troup <james@nocrew.org>
# This program is free software; you can redistribute it and/or modify
from daklib.dak_exceptions import *
from daklib.regexes import re_valid_version, re_valid_pkg_name, re_changelog_versions, \
re_strip_revision, re_strip_srcver, re_spacestrip, \
- re_isanum, re_noepoch, re_norevision, re_taint_free, \
- re_isadeb, re_extract_src_version, re_issource
+ re_isanum, re_no_epoch, re_no_revision, re_taint_free, \
+ re_isadeb, re_extract_src_version, re_issource, re_default_answer
from types import *
################################################################################
def check_deb_ar(filename):
- """Sanity check the ar of a .deb, i.e. that there is:
+ """
+ Sanity check the ar of a .deb, i.e. that there is:
- o debian-binary
- o control.tar.gz
- o data.tar.gz or data.tar.bz2
+ 1. debian-binary
+ 2. control.tar.gz
+ 3. data.tar.gz or data.tar.bz2
-in that order, and nothing else."""
+ in that order, and nothing else.
+ """
cmd = "ar t %s" % (filename)
(result, output) = commands.getstatusoutput(cmd)
if result != 0: