]> 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 20:37:50 +0000 (20:37 +0000)
committerChris Lamb <lamby@debian.org>
Tue, 27 Oct 2009 20:37:50 +0000 (20:37 +0000)
* 'master' of ries.debian.org:/srv/ftp.debian.org/git/dak:
  let's not reset last_used every time...
  old
  use the id, not the object
  add regex import
  clean-suites: Remove trailing whitespace
  file -> f
  we're already in the changes object
  use isinstance
  fixup
  clean-suites: Fix logic error in during source cleaning
  clean-suites: Fix SQLA usage
  Fix SQL syntax errors
  clean-suites: Use utils.warn for warnings about orphaned files
  clean-suites: Add proper logging
  daklog: Add username in every log line

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 9540ee164ccf4552ac6aeab14095448d40275474..8bb063079bb5f0cde30cde0b252f7218746f2d10 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: