X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fprocess_unchecked.py;h=90dd5dc56996c48b63f5b8ac0f7eefaca0c1e7c1;hb=c4458d7e67ef7780e032f5a6f2b16d1f22f7677c;hp=c1bdbe83c621572be85b2e2e85dc81b79f7a07b1;hpb=4b277e613887f5103cd2ab64262fe29ad1bf7540;p=dak.git diff --git a/dak/process_unchecked.py b/dak/process_unchecked.py index c1bdbe83..90dd5dc5 100755 --- a/dak/process_unchecked.py +++ b/dak/process_unchecked.py @@ -1,6 +1,6 @@ #!/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 # This program is free software; you can redistribute it and/or modify @@ -37,7 +37,7 @@ from daklib import utils 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_isanum, re_no_epoch, re_no_revision, re_taint_free, \ re_isadeb, re_extract_src_version, re_issource from types import * @@ -323,13 +323,15 @@ def check_distributions(): ################################################################################ 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: