]> git.decadent.org.uk Git - dak.git/log
dak.git
14 years agoMerge branch 'master' of ries.debian.org:/srv/ftp.debian.org/git/dak
Chris Lamb [Tue, 27 Oct 2009 20:37:50 +0000 (20:37 +0000)]
Merge branch 'master' of ries.debian.org:/srv/ftp.debian.org/git/dak

* '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

14 years agolet's not reset last_used every time...
Mark Hymers [Tue, 27 Oct 2009 20:27:13 +0000 (20:27 +0000)]
let's not reset last_used every time...

Signed-off-by: Mark Hymers <mhy@debian.org>
14 years agoold
Joerg Jaspert [Tue, 27 Oct 2009 19:57:09 +0000 (20:57 +0100)]
old

removing a check against an AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANCIENT dpkg version

Signed-off-by: Joerg Jaspert <joerg@debian.org>
14 years agouse the id, not the object
Mark Hymers [Tue, 27 Oct 2009 19:43:32 +0000 (19:43 +0000)]
use the id, not the object

Signed-off-by: Mark Hymers <mhy@debian.org>
14 years agoadd regex import
Mark Hymers [Tue, 27 Oct 2009 19:34:28 +0000 (19:34 +0000)]
add regex import

Signed-off-by: Mark Hymers <mhy@debian.org>
14 years agoMerge branch 'merge'
Joerg Jaspert [Tue, 27 Oct 2009 16:51:01 +0000 (17:51 +0100)]
Merge branch 'merge'

* merge:
  clean-suites: Remove trailing whitespace
  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

14 years agoMerge commit 'djpig/djpig' into merge
Joerg Jaspert [Tue, 27 Oct 2009 16:50:53 +0000 (17:50 +0100)]
Merge commit 'djpig/djpig' into merge

* commit 'djpig/djpig':
  clean-suites: Remove trailing whitespace
  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

Signed-off-by: Joerg Jaspert <joerg@debian.org>
14 years agoclean-suites: Remove trailing whitespace
Frank Lichtenheld [Tue, 27 Oct 2009 16:43:25 +0000 (16:43 +0000)]
clean-suites: Remove trailing whitespace

Signed-off-by: Frank Lichtenheld <djpig@debian.org>
14 years agoRemove unused imports from daklib.
Chris Lamb [Tue, 27 Oct 2009 16:35:26 +0000 (16:35 +0000)]
Remove unused imports from daklib.

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agoMerge branch 'merge'
Joerg Jaspert [Tue, 27 Oct 2009 16:28:57 +0000 (17:28 +0100)]
Merge branch 'merge'

* merge:
  Monkeypatch commands.getstatusoutput to work around Python Popen issue.
  drop unused imports

14 years agoMerge commit 'lamby/master' into merge
Joerg Jaspert [Tue, 27 Oct 2009 16:28:44 +0000 (17:28 +0100)]
Merge commit 'lamby/master' into merge

* commit 'lamby/master':
  Monkeypatch commands.getstatusoutput to work around Python Popen issue.
  drop unused imports

Signed-off-by: Joerg Jaspert <joerg@debian.org>
14 years agoUse more Pythonic "".join over str.join
Chris Lamb [Tue, 27 Oct 2009 16:28:44 +0000 (16:28 +0000)]
Use more Pythonic "".join over str.join

14 years agoMonkeypatch commands.getstatusoutput to work around Python Popen issue.
Chris Lamb [Tue, 27 Oct 2009 16:26:26 +0000 (16:26 +0000)]
Monkeypatch commands.getstatusoutput to work around Python Popen issue.

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agodrop unused imports
Chris Lamb [Tue, 27 Oct 2009 16:20:27 +0000 (16:20 +0000)]
drop unused imports

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agofile -> f
Mark Hymers [Tue, 27 Oct 2009 15:35:15 +0000 (15:35 +0000)]
file -> f

Signed-off-by: Mark Hymers <mhy@debian.org>
14 years agowe're already in the changes object
Mark Hymers [Tue, 27 Oct 2009 15:33:09 +0000 (15:33 +0000)]
we're already in the changes object

Signed-off-by: Mark Hymers <mhy@debian.org>
14 years agouse isinstance
Mark Hymers [Tue, 27 Oct 2009 15:32:34 +0000 (15:32 +0000)]
use isinstance

Signed-off-by: Mark Hymers <mhy@debian.org>
14 years agofixup
Mark Hymers [Tue, 27 Oct 2009 15:28:20 +0000 (15:28 +0000)]
fixup

Signed-off-by: Mark Hymers <mhy@debian.org>
14 years agoMerge commit 'lamby/master' into merge
Joerg Jaspert [Tue, 27 Oct 2009 15:26:20 +0000 (16:26 +0100)]
Merge commit 'lamby/master' into merge

* commit 'lamby/master':
  If positional argument is None, modify it.s

Signed-off-by: Joerg Jaspert <joerg@debian.org>
14 years agoIf positional argument is None, modify it.s
Chris Lamb [Tue, 27 Oct 2009 15:26:01 +0000 (15:26 +0000)]
If positional argument is None, modify it.s

14 years agoMerge commit 'lamby/master' into merge
Joerg Jaspert [Tue, 27 Oct 2009 15:19:27 +0000 (16:19 +0100)]
Merge commit 'lamby/master' into merge

* commit 'lamby/master':
  If None is passed in.
  let there be referential integrity

Signed-off-by: Joerg Jaspert <joerg@debian.org>
14 years agoIf None is passed in.
Chris Lamb [Tue, 27 Oct 2009 15:18:11 +0000 (15:18 +0000)]
If None is passed in.

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agolet there be referential integrity
Mark Hymers [Tue, 27 Oct 2009 15:12:14 +0000 (15:12 +0000)]
let there be referential integrity

Signed-off-by: Mark Hymers <mhy@debian.org>
14 years agoclean-suites: Fix logic error in during source cleaning
Frank Lichtenheld [Tue, 27 Oct 2009 15:02:18 +0000 (15:02 +0000)]
clean-suites: Fix logic error in during source cleaning

We need to remove all the entries in dsc_files(sic) for a given
source before we can remove the source.

Signed-off-by: Frank Lichtenheld <djpig@debian.org>
14 years agoMerge commit 'lamby/deb-src-3.0-sqla' into merge
Joerg Jaspert [Tue, 27 Oct 2009 14:57:08 +0000 (15:57 +0100)]
Merge commit 'lamby/deb-src-3.0-sqla' into merge

* commit 'lamby/deb-src-3.0-sqla':
  Add missing for loop.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
14 years agoAdd missing for loop.
Chris Lamb [Tue, 27 Oct 2009 14:55:35 +0000 (14:55 +0000)]
Add missing for loop.

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agoMerge commit 'lamby/deb-src-3.0-sqla' into merge
Joerg Jaspert [Tue, 27 Oct 2009 14:54:24 +0000 (15:54 +0100)]
Merge commit 'lamby/deb-src-3.0-sqla' into merge

* commit 'lamby/deb-src-3.0-sqla':
  This is SQL, not Python.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
14 years agoThis is SQL, not Python.
Chris Lamb [Tue, 27 Oct 2009 14:53:01 +0000 (14:53 +0000)]
This is SQL, not Python.

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agoMerge commit 'lamby/deb-src-3.0-sqla' into merge
Joerg Jaspert [Tue, 27 Oct 2009 14:51:48 +0000 (15:51 +0100)]
Merge commit 'lamby/deb-src-3.0-sqla' into merge

* commit 'lamby/deb-src-3.0-sqla':
  Use the format id. not its name.
  Interpolate values properly.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
14 years agoUse the format id. not its name.
Chris Lamb [Tue, 27 Oct 2009 14:51:21 +0000 (14:51 +0000)]
Use the format id. not its name.

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agoInterpolate values properly.
Chris Lamb [Tue, 27 Oct 2009 14:50:49 +0000 (14:50 +0000)]
Interpolate values properly.

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agoMerge commit 'lamby/deb-src-3.0-sqla' into merge
Joerg Jaspert [Tue, 27 Oct 2009 14:47:18 +0000 (15:47 +0100)]
Merge commit 'lamby/deb-src-3.0-sqla' into merge

* commit 'lamby/deb-src-3.0-sqla':
  Actually select some rows.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
14 years agoActually select some rows.
Chris Lamb [Tue, 27 Oct 2009 14:44:57 +0000 (14:44 +0000)]
Actually select some rows.

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agoMerge commit 'lamby/deb-src-3.0-sqla' into merge
Joerg Jaspert [Tue, 27 Oct 2009 14:41:19 +0000 (15:41 +0100)]
Merge commit 'lamby/deb-src-3.0-sqla' into merge

* commit 'lamby/deb-src-3.0-sqla': (29 commits)
  Drop lzma support.
  Only enable not-"1.0" formats on t-p-u and unstable and experimental.
  Reject uploads that contain a native tarball and a diff.
  dak heresy
  Fix reference to cls.requires.
  Add unittest.main() to test_regexes.
  Add shebang to regex tests.
  Simplify rejecting logic
  Avoid if/elif/elif.. with lookup table.
  Use loop to check for illegal duplication of file types in .dsc
  Use a collections.defaultdict to avoid boilerplate definitions.
  Correct grammar when rejecting a package with insufficient files.
  Require source formats to have a name and interpolate it when returning msgs
  Compare with None using "is", not "=="
  Remove has_ prefix inside srcformats.
  Don't pass dsc_filename to reject_msgs; prepend it in check_dsc_files.
  Move rejection message generation into srcformats
  Add regex to match .dsc "Format: lala" value and compile it on creation.
  Add SourceFormat class and track definitions with metaclass
  Make dbconn.get_suite_src_formats use @session_wrapper.
  ...

Signed-off-by: Joerg Jaspert <joerg@debian.org>
14 years agoDrop lzma support.
Chris Lamb [Tue, 27 Oct 2009 14:40:49 +0000 (14:40 +0000)]
Drop lzma support.

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agoOnly enable not-"1.0" formats on t-p-u and unstable and experimental.
Chris Lamb [Tue, 27 Oct 2009 14:40:15 +0000 (14:40 +0000)]
Only enable not-"1.0" formats on t-p-u and unstable and experimental.

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agoclean-suites: Fix SQLA usage
Frank Lichtenheld [Tue, 27 Oct 2009 14:37:23 +0000 (14:37 +0000)]
clean-suites: Fix SQLA usage

Signed-off-by: Frank Lichtenheld <djpig@debian.org>
14 years agoFix SQL syntax errors
Frank Lichtenheld [Tue, 27 Oct 2009 14:28:04 +0000 (14:28 +0000)]
Fix SQL syntax errors

Signed-off-by: Frank Lichtenheld <djpig@debian.org>
14 years agoclean-suites: Use utils.warn for warnings about orphaned files
Frank Lichtenheld [Tue, 27 Oct 2009 14:27:30 +0000 (14:27 +0000)]
clean-suites: Use utils.warn for warnings about orphaned files

Signed-off-by: Frank Lichtenheld <djpig@debian.org>
14 years agoMerge branch 'master' into deb-src-3.0-sqla
Chris Lamb [Tue, 27 Oct 2009 14:25:37 +0000 (14:25 +0000)]
Merge branch 'master' into deb-src-3.0-sqla

* master:
  Use session.commit_or_flush in some more functions.
  Attach commit_or_flush to session object to call either .commit() or .flush()
  Add doc for session_wrapper.
  process-new: Fix BCC and X-Katie handling
  Fix various small bugs
  Re-enable BXA notifications
  queue: Fix typo
  Convert process_new to new APIs
  Print a warning if a trainee tries to do something he's not allowed to do
  Documentation fixes

Conflicts:
daklib/queue.py

14 years agoMerge commit 'lamby/master' into merge
Joerg Jaspert [Tue, 27 Oct 2009 14:09:16 +0000 (15:09 +0100)]
Merge commit 'lamby/master' into merge

* commit 'lamby/master':
  Use session.commit_or_flush in some more functions.
  Attach commit_or_flush to session object to call either .commit() or .flush()
  Add doc for session_wrapper.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
14 years agoclean-suites: Add proper logging
Frank Lichtenheld [Tue, 27 Oct 2009 14:06:21 +0000 (14:06 +0000)]
clean-suites: Add proper logging

Also move some SQL queries to ORM API where useful and/or easy.

Signed-off-by: Frank Lichtenheld <djpig@debian.org>
14 years agodaklog: Add username in every log line
Frank Lichtenheld [Tue, 27 Oct 2009 14:05:09 +0000 (14:05 +0000)]
daklog: Add username in every log line

Signed-off-by: Frank Lichtenheld <djpig@debian.org>
14 years agoUse session.commit_or_flush in some more functions.
Chris Lamb [Tue, 27 Oct 2009 09:19:24 +0000 (09:19 +0000)]
Use session.commit_or_flush in some more functions.

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agoAttach commit_or_flush to session object to call either .commit() or .flush()
Chris Lamb [Tue, 27 Oct 2009 09:19:00 +0000 (09:19 +0000)]
Attach commit_or_flush to session object to call either .commit() or .flush()

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agoAdd doc for session_wrapper.
Chris Lamb [Tue, 27 Oct 2009 08:55:06 +0000 (08:55 +0000)]
Add doc for session_wrapper.

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agoReject uploads that contain a native tarball and a diff.
Chris Lamb [Tue, 27 Oct 2009 13:30:29 +0000 (13:30 +0000)]
Reject uploads that contain a native tarball and a diff.

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agodak heresy
Chris Lamb [Tue, 27 Oct 2009 13:29:51 +0000 (13:29 +0000)]
dak heresy

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agoFix reference to cls.requires.
Chris Lamb [Tue, 27 Oct 2009 13:06:15 +0000 (13:06 +0000)]
Fix reference to cls.requires.

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agoAdd unittest.main() to test_regexes.
Chris Lamb [Tue, 27 Oct 2009 13:00:50 +0000 (13:00 +0000)]
Add unittest.main() to test_regexes.

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agoAdd shebang to regex tests.
Chris Lamb [Tue, 27 Oct 2009 11:57:56 +0000 (11:57 +0000)]
Add shebang to regex tests.

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agoSimplify rejecting logic
Chris Lamb [Tue, 27 Oct 2009 11:51:40 +0000 (11:51 +0000)]
Simplify rejecting logic

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agoAvoid if/elif/elif.. with lookup table.
Chris Lamb [Tue, 27 Oct 2009 11:11:05 +0000 (11:11 +0000)]
Avoid if/elif/elif.. with lookup table.

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agoUse loop to check for illegal duplication of file types in .dsc
Chris Lamb [Tue, 27 Oct 2009 10:56:45 +0000 (10:56 +0000)]
Use loop to check for illegal duplication of file types in .dsc

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agoUse a collections.defaultdict to avoid boilerplate definitions.
Chris Lamb [Tue, 27 Oct 2009 10:52:33 +0000 (10:52 +0000)]
Use a collections.defaultdict to avoid boilerplate definitions.

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agoCorrect grammar when rejecting a package with insufficient files.
Chris Lamb [Tue, 27 Oct 2009 10:41:14 +0000 (10:41 +0000)]
Correct grammar when rejecting a package with insufficient files.

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agoRequire source formats to have a name and interpolate it when returning msgs
Chris Lamb [Tue, 27 Oct 2009 10:40:10 +0000 (10:40 +0000)]
Require source formats to have a name and interpolate it when returning msgs

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agoCompare with None using "is", not "=="
Chris Lamb [Tue, 27 Oct 2009 10:36:26 +0000 (10:36 +0000)]
Compare with None using "is", not "=="

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agoRemove has_ prefix inside srcformats.
Chris Lamb [Tue, 27 Oct 2009 10:35:22 +0000 (10:35 +0000)]
Remove has_ prefix inside srcformats.

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agoDon't pass dsc_filename to reject_msgs; prepend it in check_dsc_files.
Chris Lamb [Tue, 27 Oct 2009 10:33:40 +0000 (10:33 +0000)]
Don't pass dsc_filename to reject_msgs; prepend it in check_dsc_files.

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agoMove rejection message generation into srcformats
Chris Lamb [Tue, 27 Oct 2009 10:31:22 +0000 (10:31 +0000)]
Move rejection message generation into srcformats

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agoAdd regex to match .dsc "Format: lala" value and compile it on creation.
Chris Lamb [Tue, 27 Oct 2009 10:28:59 +0000 (10:28 +0000)]
Add regex to match .dsc "Format: lala" value and compile it on creation.

This forces every format to have a regex too as it will blow up otherwise.

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agoAdd SourceFormat class and track definitions with metaclass
Chris Lamb [Tue, 27 Oct 2009 10:25:59 +0000 (10:25 +0000)]
Add SourceFormat class and track definitions with metaclass

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agoMerge commit 'mhy/master' into merge
Joerg Jaspert [Tue, 27 Oct 2009 10:05:04 +0000 (11:05 +0100)]
Merge commit 'mhy/master' into merge

* commit 'mhy/master':
  process-new: Fix BCC and X-Katie handling
  Fix various small bugs
  Re-enable BXA notifications
  queue: Fix typo
  Convert process_new to new APIs
  Print a warning if a trainee tries to do something he's not allowed to do
  Documentation fixes

Signed-off-by: Joerg Jaspert <joerg@debian.org>
14 years agoMerge commit 'djpig/djpig'
Mark Hymers [Tue, 27 Oct 2009 10:04:35 +0000 (10:04 +0000)]
Merge commit 'djpig/djpig'

Conflicts:
daklib/dbconn.py

Signed-off-by: Mark Hymers <mhy@debian.org>
14 years agoprocess-new: Fix BCC and X-Katie handling
Frank Lichtenheld [Tue, 27 Oct 2009 09:57:05 +0000 (09:57 +0000)]
process-new: Fix BCC and X-Katie handling

Signed-off-by: Frank Lichtenheld <djpig@debian.org>
14 years agoFix various small bugs
Frank Lichtenheld [Tue, 27 Oct 2009 09:56:06 +0000 (09:56 +0000)]
Fix various small bugs

Signed-off-by: Frank Lichtenheld <djpig@debian.org>
14 years agoMake dbconn.get_suite_src_formats use @session_wrapper.
Chris Lamb [Tue, 27 Oct 2009 09:49:00 +0000 (09:49 +0000)]
Make dbconn.get_suite_src_formats use @session_wrapper.

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agoMerge branch 'master' into deb-src-3.0-sqla
Chris Lamb [Tue, 27 Oct 2009 09:52:18 +0000 (09:52 +0000)]
Merge branch 'master' into deb-src-3.0-sqla

* master:
  fix p-u accepts for binary uploads
  Correct logic with detecting default kwarg values vs positional args.
  Wrap __doc__ and func_name in @session_wrapper.
  Avoid circular import when importing daklib.dbconn first.
  Handle arguments with default kwargs in @session_wrapper.
  Add missing "utils" import (used in security conditional)
  No need to assign to a local now that @session_wrapper does the cleanup
  Avoid calling .count(); call .one() and catch the exception.
  Fix Archive.__repr__
  Factor out most common session handling into decorator.

14 years agoMerge commit 'mhy/master' into merge
Joerg Jaspert [Tue, 27 Oct 2009 09:05:51 +0000 (10:05 +0100)]
Merge commit 'mhy/master' into merge

* commit 'mhy/master':
  fix p-u accepts for binary uploads

Signed-off-by: Joerg Jaspert <joerg@debian.org>
14 years agofix p-u accepts for binary uploads
Mark Hymers [Tue, 27 Oct 2009 09:04:57 +0000 (09:04 +0000)]
fix p-u accepts for binary uploads

Signed-off-by: Mark Hymers <mhy@debian.org>
14 years agoMerge commit 'lamby/master' into merge
Joerg Jaspert [Tue, 27 Oct 2009 08:49:04 +0000 (09:49 +0100)]
Merge commit 'lamby/master' into merge

* commit 'lamby/master':
  Correct logic with detecting default kwarg values vs positional args.
  Wrap __doc__ and func_name in @session_wrapper.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
14 years agoCorrect logic with detecting default kwarg values vs positional args.
Chris Lamb [Tue, 27 Oct 2009 08:47:48 +0000 (08:47 +0000)]
Correct logic with detecting default kwarg values vs positional args.

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agoWrap __doc__ and func_name in @session_wrapper.
Chris Lamb [Tue, 27 Oct 2009 08:40:04 +0000 (08:40 +0000)]
Wrap __doc__ and func_name in @session_wrapper.

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agoMerge commit 'lamby/master' into merge
Joerg Jaspert [Tue, 27 Oct 2009 08:36:02 +0000 (09:36 +0100)]
Merge commit 'lamby/master' into merge

* commit 'lamby/master':
  Avoid circular import when importing daklib.dbconn first.
  Handle arguments with default kwargs in @session_wrapper.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
14 years agoAvoid circular import when importing daklib.dbconn first.
Chris Lamb [Tue, 27 Oct 2009 08:35:14 +0000 (08:35 +0000)]
Avoid circular import when importing daklib.dbconn first.

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agoHandle arguments with default kwargs in @session_wrapper.
Chris Lamb [Tue, 27 Oct 2009 08:34:25 +0000 (08:34 +0000)]
Handle arguments with default kwargs in @session_wrapper.

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agoMerge commit 'lamby/master' into merge
Joerg Jaspert [Tue, 27 Oct 2009 08:28:50 +0000 (09:28 +0100)]
Merge commit 'lamby/master' into merge

* commit 'lamby/master':
  Add missing "utils" import (used in security conditional)
  No need to assign to a local now that @session_wrapper does the cleanup
  Avoid calling .count(); call .one() and catch the exception.
  Fix Archive.__repr__
  Factor out most common session handling into decorator.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
14 years agoAdd missing "utils" import (used in security conditional)
Chris Lamb [Tue, 27 Oct 2009 08:18:57 +0000 (08:18 +0000)]
Add missing "utils" import (used in security conditional)

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agoNo need to assign to a local now that @session_wrapper does the cleanup
Chris Lamb [Mon, 26 Oct 2009 20:02:09 +0000 (20:02 +0000)]
No need to assign to a local now that @session_wrapper does the cleanup

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agoAvoid calling .count(); call .one() and catch the exception.
Chris Lamb [Mon, 26 Oct 2009 19:48:14 +0000 (19:48 +0000)]
Avoid calling .count(); call .one() and catch the exception.

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agoAdd support for multiple orig tarballs
Raphaël Hertzog [Tue, 27 Oct 2009 01:39:53 +0000 (02:39 +0100)]
Add support for multiple orig tarballs

Structure of Upload.pkg is adapted to handle multiple upstream tarballs.
This also means that the .dak format is modified.

Since the .dak format has been modified, improve the object .dak parser
funtion to be able to read both the new and the old format. When
reading the old format, it auto-converts the data to the new structure.
It uses python's type() introspection to know what format is used.

This allows in-place upgrade even when old .dak are still stored
in various queues.

Several other adaptations are also required in other methods of Upload object,
in process-accepted, in autobuild_queue().

Signed-off-by: Raphaël Hertzog <hertzog@debian.org>
14 years agodak show-new: use new regex to cope with all source files extensions
Raphaël Hertzog [Tue, 27 Oct 2009 00:29:52 +0000 (01:29 +0100)]
dak show-new: use new regex to cope with all source files extensions

Signed-off-by: Raphael Hertzog <hertzog@debian.org>
14 years agodak check-archive: replace check tar-gz-in-dsc
Raphaël Hertzog [Tue, 27 Oct 2009 00:25:35 +0000 (01:25 +0100)]
dak check-archive: replace check tar-gz-in-dsc

The check tar-gz-in-dsc is replaced by a more meaningful
test similar to what is done is process-unchecked. The new test
is called files-in-dsc and verifies that the files listed
in Files are correct for the format announced in the Format field.

Signed-off-by: Raphael Hertzog <hertzog@debian.org>
14 years agoFix Upload.check_files() and Upload.check_dsc() to support new formats
Raphaël Hertzog [Tue, 27 Oct 2009 00:12:06 +0000 (01:12 +0100)]
Fix Upload.check_files() and Upload.check_dsc() to support new formats

Also fix queue.get_type() to handle all source files extensions.

14 years agoFix utils.build_file_list() for 3.x source packages
Raphael Hertzog [Sat, 28 Feb 2009 22:38:34 +0000 (23:38 +0100)]
Fix utils.build_file_list() for 3.x source packages

Let utils.build_file_list() know that we understand newer
formats like 3.0 (quilt) or 3.0 (native).

Signed-off-by: Raphael Hertzog <hertzog@debian.org>
14 years agoCreate utils.check_dsc() to verify files in source packages
Raphaël Hertzog [Mon, 26 Oct 2009 22:58:01 +0000 (23:58 +0100)]
Create utils.check_dsc() to verify files in source packages

It ensures that the right files are there for each source format.
This will be used by at several places (daklib/queue.py,
dak/check-archive.py).

Signed-off-by: Raphael Hertzog <hertzog@debian.org>
14 years agoAdd new SQLAlchemy objects representing source formats
Raphaël Hertzog [Mon, 26 Oct 2009 23:35:18 +0000 (00:35 +0100)]
Add new SQLAlchemy objects representing source formats

Also add a function get_suite_src_formats(suite) returning the list of
allowed formats for a given suite.

14 years agoAdd list of allowed source formats in the database
Raphaël Hertzog [Mon, 26 Oct 2009 23:08:07 +0000 (00:08 +0100)]
Add list of allowed source formats in the database

* Add dak/dakdb/update15.py to update the database.
* Update required_database_schema to 15 in dak/update_db.py.

14 years agodaklib/regexes.py: updates to support new source files
Raphael Hertzog [Sat, 28 Feb 2009 16:39:31 +0000 (17:39 +0100)]
daklib/regexes.py: updates to support new source files

The regex re_issource is modified to recognize the new compression scheme
supported by the 3.0 source package formats. Also add the
the debian.tar file used by 3.0 (quilt) and 2.0 and the
.orig-component.tar for additional upstream tarballs.

Add a new regex re_is_orig_source to know if a file correspond
to some upstream source tarballs (where the version should not have a
debian revision).

Add new regexes re_source_ext and re_orig_source_ext to match only the
extension of source files. And reuse those in the definition of
re_is_orig_source and re_issource to avoid duplication.

Signed-off-by: Raphael Hertzog <hertzog@debian.org>
14 years agoRe-enable BXA notifications
Frank Lichtenheld [Mon, 26 Oct 2009 19:43:22 +0000 (19:43 +0000)]
Re-enable BXA notifications

Signed-off-by: Frank Lichtenheld <djpig@debian.org>
14 years agoqueue: Fix typo
Frank Lichtenheld [Mon, 26 Oct 2009 19:42:33 +0000 (19:42 +0000)]
queue: Fix typo

Signed-off-by: Frank Lichtenheld <djpig@debian.org>
14 years agoFix Archive.__repr__
Chris Lamb [Mon, 26 Oct 2009 19:27:09 +0000 (19:27 +0000)]
Fix Archive.__repr__

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agoFactor out most common session handling into decorator.
Chris Lamb [Mon, 26 Oct 2009 19:25:33 +0000 (19:25 +0000)]
Factor out most common session handling into decorator.

Signed-off-by: Chris Lamb <lamby@debian.org>
14 years agoConvert process_new to new APIs
Frank Lichtenheld [Mon, 26 Oct 2009 19:19:27 +0000 (19:19 +0000)]
Convert process_new to new APIs

All code only used in security and/or stable updates is commented
out for now and not converted, yet

14 years agoPrint a warning if a trainee tries to do something he's not allowed to do
Frank Lichtenheld [Mon, 26 Oct 2009 19:16:43 +0000 (19:16 +0000)]
Print a warning if a trainee tries to do something he's not allowed to do

Signed-off-by: Frank Lichtenheld <djpig@debian.org>
14 years agoDocumentation fixes
Frank Lichtenheld [Mon, 26 Oct 2009 13:50:32 +0000 (13:50 +0000)]
Documentation fixes

Signed-off-by: Frank Lichtenheld <djpig@debian.org>
14 years agoMerge commit 'mhy/master' into merge
Joerg Jaspert [Mon, 26 Oct 2009 19:11:03 +0000 (20:11 +0100)]
Merge commit 'mhy/master' into merge

* commit 'mhy/master':
  really disable contents in p-a

Signed-off-by: Joerg Jaspert <joerg@debian.org>
14 years agoreally disable contents in p-a
Mark Hymers [Mon, 26 Oct 2009 19:10:50 +0000 (19:10 +0000)]
really disable contents in p-a

Signed-off-by: Mark Hymers <mhy@debian.org>
14 years agoMerge commit 'mhy/master' into merge
Joerg Jaspert [Mon, 26 Oct 2009 19:06:06 +0000 (20:06 +0100)]
Merge commit 'mhy/master' into merge

* commit 'mhy/master':
  disable contents storage for now

Signed-off-by: Joerg Jaspert <joerg@debian.org>