]> 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

1  2 
daklib/dbconn.py
daklib/queue.py

diff --combined daklib/dbconn.py
index 224935dd5883504a59c9d1b27f44175ce227e287,850c10d8d0bffcfae4cc9fc87fc6462ff7225869..56ff65aa9dc730cc1e9e40dcfd63fd649d4a2ff6
@@@ -39,7 -39,7 +39,7 @@@ import tracebac
  
  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
@@@ -84,6 -84,7 +84,7 @@@ def session_wrapper(fn)
                  # Session is last argument in args
                  session = args[-1]
                  if session is None:
+                     args = list(args)
                      session = args[-1] = DBConn().session()
                      private_transaction = True
  
@@@ -1417,6 -1418,7 +1418,7 @@@ class Queue(object)
              # them (if one doesn't already exist)
              for dsc_file in changes.dsc_files.keys():
                  # Skip all files except orig tarballs
+                 from daklib.regexes import re_is_orig_source
                  if not re_is_orig_source.match(dsc_file):
                      continue
                  # Skip orig files not identified in the pool
diff --combined daklib/queue.py
index 1ece0d1da139c4657843d42dc798b973aa4f0c68,9540ee164ccf4552ac6aeab14095448d40275474..8bb063079bb5f0cde30cde0b252f7218746f2d10
@@@ -26,6 -26,7 +26,6 @@@ Queue utility functions for da
  
  ###############################################################################
  
 -import cPickle
  import errno
  import os
  import pg
@@@ -71,7 -72,7 +71,7 @@@ def get_type(f, session)
      """
      # Determine the type
      if f.has_key("dbtype"):
-         file_type = file["dbtype"]
+         file_type = f["dbtype"]
      elif re_source_ext.match(f["type"]):
          file_type = "dsc"
      else:
@@@ -998,11 -999,6 +998,6 @@@ class Upload(object)
          for field_name in [ "build-depends", "build-depends-indep" ]:
              field = self.pkg.dsc.get(field_name)
              if field:
-                 # Check for broken dpkg-dev lossage...
-                 if field.startswith("ARRAY"):
-                     self.rejects.append("%s: invalid %s field produced by a broken version of dpkg-dev (1.10.11)" % \
-                                         (dsc_filename, field_name.title()))
                  # Have apt try to parse them...
                  try:
                      apt_pkg.ParseSrcDepends(field)