]> git.decadent.org.uk Git - dak.git/commitdiff
Merge branch 'master' of ries.debian.org:/srv/ftp.debian.org/git/dak
authorChris Lamb <lamby@debian.org>
Tue, 27 Oct 2009 21:04:44 +0000 (21:04 +0000)
committerChris Lamb <lamby@debian.org>
Tue, 27 Oct 2009 21:04:44 +0000 (21:04 +0000)
* 'master' of ries.debian.org:/srv/ftp.debian.org/git/dak:
  Disable check_lintian for now.
  clean-queues: Add proper logging
  Only lintian reject uploads to unstable or experimental
  Fix use of "wayout" name.
  dict[k] raises IndexError if does not exist - check with infix 'in' instead.
  Actually add a seperator to our --tags-from-file input.
  lintian YAML has a "lintian" root element.
  Close sourcefile.
  Dedent again by returning if lintian doesn't return any content.
  Return all the lintian-related rejections, not just the first one.
  It's called 'next', not 'continue'. =)
  Dedent again by using continue.
  Remove one level of indentation by using continue
  Simple check for lintian regex
  Use set() instead of Perlesque hash[key] = 1
  autoreject
  Add lintian tags file

daklib/database.py
daklib/dbconn.py
daklib/queue.py
daklib/utils.py

index cbdfad04e5a4504f204210802bdc5efc9236a75f..dc950f581891277a8d941df3202e13361aa5381e 100755 (executable)
@@ -30,9 +30,6 @@
 
 ################################################################################
 
-import sys
-import time
-import types
 import utils
 import pg
 
index 850c10d8d0bffcfae4cc9fc87fc6462ff7225869..56ff65aa9dc730cc1e9e40dcfd63fd649d4a2ff6 100755 (executable)
@@ -39,7 +39,7 @@ import traceback
 
 from inspect import getargspec
 
-from sqlalchemy import create_engine, Table, MetaData, select
+from sqlalchemy import create_engine, Table, MetaData
 from sqlalchemy.orm import sessionmaker, mapper, relation
 
 # Don't remove this, we re-export the exceptions to scripts which import us
index b3247ee1924c1f8188bfae42105eb77387efb41c..7bdff49f8216563ceb077b1d9e0e32c4cfb65f60 100755 (executable)
@@ -26,7 +26,6 @@ Queue utility functions for dak
 
 ###############################################################################
 
-import cPickle
 import errno
 import os
 import pg
index 40410fbb0c8583dca03ce139c3006dddcfcce836..457e093c823cc30610e7eccde28880e2bfd5145d 100755 (executable)
@@ -22,7 +22,6 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-import codecs
 import commands
 import email.Header
 import os
@@ -46,8 +45,8 @@ from dak_exceptions import *
 from textutils import fix_maintainer
 from regexes import re_html_escaping, html_escaping, re_single_line_field, \
                     re_multi_line_field, re_srchasver, re_verwithext, \
-                    re_parse_maintainer, re_taint_free, re_gpg_uid, \
-                    re_re_mark, re_whitespace_comment, re_issource
+                    re_taint_free, re_gpg_uid, re_re_mark, \
+                    re_whitespace_comment, re_issource
 
 from srcformats import srcformats
 from collections import defaultdict
@@ -69,7 +68,7 @@ def dak_getstatusoutput(cmd):
     pipe = subprocess.Popen(cmd, shell=True, universal_newlines=True,
         stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
 
-    output = str.join("", pipe.stdout.readlines())
+    output = "".join(pipe.stdout.readlines())
 
     ret = pipe.wait()
     if ret is None: