]> err.no Git - dak/log
dak
12 years agodak/process_upload.py: include full changes file with signature
Ansgar Burchardt [Sun, 12 Aug 2012 13:52:36 +0000 (15:52 +0200)]
dak/process_upload.py: include full changes file with signature

12 years agodak/process_upload.py: only send mail to tracking server if accepted to real suite
Ansgar Burchardt [Sun, 12 Aug 2012 13:32:19 +0000 (15:32 +0200)]
dak/process_upload.py: only send mail to tracking server if accepted to real suite

12 years agotemplates/process-unchecked.accepted: use only defined subst variables
Ansgar Burchardt [Sun, 12 Aug 2012 13:31:39 +0000 (15:31 +0200)]
templates/process-unchecked.accepted: use only defined subst variables

12 years agodak/process_upload.py: add missing "not"; set subst variable at the right time
Ansgar Burchardt [Sun, 12 Aug 2012 13:25:51 +0000 (15:25 +0200)]
dak/process_upload.py: add missing "not"; set subst variable at the right time

12 years agodak/process_upload.py: set __ANNOUNCE_LIST_ADDRESS__ subst variable
Ansgar Burchardt [Sun, 12 Aug 2012 12:54:15 +0000 (14:54 +0200)]
dak/process_upload.py: set __ANNOUNCE_LIST_ADDRESS__ subst variable

12 years agodak/dakdb/update79.py: Use || operator instead of CONCAT to make postgresql 9.0 happy
Ansgar Burchardt [Sun, 12 Aug 2012 12:49:01 +0000 (14:49 +0200)]
dak/dakdb/update79.py: Use || operator instead of CONCAT to make postgresql 9.0 happy

12 years agodak/dakdb/update79.py: add world schema and new stable views
Ansgar Burchardt [Sun, 12 Aug 2012 12:45:37 +0000 (14:45 +0200)]
dak/dakdb/update79.py: add world schema and new stable views

12 years agodak/examine_package.py: dereference symlink by using ls -lL
Ansgar Burchardt [Sat, 7 Jul 2012 17:39:43 +0000 (11:39 -0600)]
dak/examine_package.py: dereference symlink by using ls -lL

This still shows the full path, but at least it shows the correct size
instead of just a symlink to another file.

12 years agodak/examine_package.py: use basename of .deb to get package name
Ansgar Burchardt [Sun, 12 Aug 2012 11:56:58 +0000 (13:56 +0200)]
dak/examine_package.py: use basename of .deb to get package name

12 years agodak/dakdb/update78.py: alter permissions for new tables and set default permissions
Ansgar Burchardt [Sun, 12 Aug 2012 11:20:17 +0000 (13:20 +0200)]
dak/dakdb/update78.py: alter permissions for new tables and set default permissions

12 years agodaklib/dbconn.py: DBBinary.get_component_name is gone, use PoolFile.component instead
Ansgar Burchardt [Sun, 12 Aug 2012 10:41:20 +0000 (12:41 +0200)]
daklib/dbconn.py: DBBinary.get_component_name is gone, use PoolFile.component instead

12 years agodaklib/policy.py: also import Suite from daklib.dbconn
Ansgar Burchardt [Sun, 12 Aug 2012 10:34:24 +0000 (12:34 +0200)]
daklib/policy.py: also import Suite from daklib.dbconn

12 years agodaklib/checks.py: set control variable
Ansgar Burchardt [Sun, 12 Aug 2012 10:29:35 +0000 (12:29 +0200)]
daklib/checks.py: set control variable

12 years agoconfig/debian/common: also process BYHAND
Ansgar Burchardt [Sun, 12 Aug 2012 10:17:35 +0000 (12:17 +0200)]
config/debian/common: also process BYHAND

12 years agodak/process_new.py: auto-accept uploads if we have all overrides
Ansgar Burchardt [Sun, 12 Aug 2012 10:16:14 +0000 (12:16 +0200)]
dak/process_new.py: auto-accept uploads if we have all overrides

12 years agodak/show_new.py: remove obsolete import
Ansgar Burchardt [Sun, 12 Aug 2012 09:49:19 +0000 (11:49 +0200)]
dak/show_new.py: remove obsolete import

12 years agoconfig/debian/*: update for multiarchive changes
Ansgar Burchardt [Sun, 12 Aug 2012 09:15:25 +0000 (11:15 +0200)]
config/debian/*: update for multiarchive changes

12 years agodak/contents.py, daklib/contents.py: add archive option
Ansgar Burchardt [Sun, 12 Aug 2012 09:06:40 +0000 (11:06 +0200)]
dak/contents.py, daklib/contents.py: add archive option

12 years agodak/export.py, daklib/policy.py: ignore existing files
Ansgar Burchardt [Sun, 12 Aug 2012 08:57:24 +0000 (10:57 +0200)]
dak/export.py, daklib/policy.py: ignore existing files

The same upstream tarball can be used by multiple uploads so we have to
ignore already existing files.

12 years agoRevert "config/*/common: do not touch incoming"
Ansgar Burchardt [Sun, 12 Aug 2012 08:09:42 +0000 (10:09 +0200)]
Revert "config/*/common: do not touch incoming"

This reverts commit 58fc1503ab1484b42e66a93155441634eff6e604.

12 years agoadd export-suite subcommand to export a suite to a flat directory
Ansgar Burchardt [Sun, 12 Aug 2012 07:50:38 +0000 (09:50 +0200)]
add export-suite subcommand to export a suite to a flat directory

12 years agodak/clean_suites.py: allow limiting file removal to specific archives
Ansgar Burchardt [Sun, 12 Aug 2012 06:45:30 +0000 (08:45 +0200)]
dak/clean_suites.py: allow limiting file removal to specific archives

This allows us to remove all obsolete files from the NEW queue even when
the maximum number of removals would be reached normally.

12 years agodak/process_upload.py: ignore non-existing files when rejecting
Ansgar Burchardt [Sat, 11 Aug 2012 17:51:35 +0000 (19:51 +0200)]
dak/process_upload.py: ignore non-existing files when rejecting

12 years agodak/process_upload.py: add missing import
Ansgar Burchardt [Sat, 11 Aug 2012 17:44:56 +0000 (19:44 +0200)]
dak/process_upload.py: add missing import

12 years agodaklib/archive.py: try to get all source files from pool, even when listed in changes
Ansgar Burchardt [Sat, 11 Aug 2012 17:42:32 +0000 (19:42 +0200)]
daklib/archive.py: try to get all source files from pool, even when listed in changes

12 years agodaklib/archive.py: also ignore files from .changes that do not exist
Ansgar Burchardt [Sat, 11 Aug 2012 17:40:11 +0000 (19:40 +0200)]
daklib/archive.py: also ignore files from .changes that do not exist

12 years agodaklib/archive.py: ignore missing source files when copying to temporary directory
Ansgar Burchardt [Sat, 11 Aug 2012 17:27:53 +0000 (19:27 +0200)]
daklib/archive.py: ignore missing source files when copying to temporary directory

12 years agodak/dakdb/update75.py: fix adding architectures for new and byhand
Ansgar Burchardt [Sat, 11 Aug 2012 16:59:43 +0000 (18:59 +0200)]
dak/dakdb/update75.py: fix adding architectures for new and byhand

12 years agodak/clean_suites.py: implement per-archive stay of execution
Ansgar Burchardt [Sat, 11 Aug 2012 15:37:24 +0000 (17:37 +0200)]
dak/clean_suites.py: implement per-archive stay of execution

12 years agodak/dakdb/update77.py: move stayofexecution to the database
Ansgar Burchardt [Sat, 11 Aug 2012 15:47:57 +0000 (17:47 +0200)]
dak/dakdb/update77.py: move stayofexecution to the database

12 years agodak/control_suite.py: prefetch files table when looking up a binary or source package
Ansgar Burchardt [Sat, 11 Aug 2012 09:38:20 +0000 (11:38 +0200)]
dak/control_suite.py: prefetch files table when looking up a binary or source package

12 years agodak/generate_releases.py: add archive option
Ansgar Burchardt [Sat, 11 Aug 2012 11:41:52 +0000 (13:41 +0200)]
dak/generate_releases.py: add archive option

12 years agodak/generate_packages_sources2.py: add archive option
Ansgar Burchardt [Sat, 11 Aug 2012 11:41:37 +0000 (13:41 +0200)]
dak/generate_packages_sources2.py: add archive option

12 years agoindicate who rejected a package
Ansgar Burchardt [Mon, 30 Jul 2012 13:43:21 +0000 (15:43 +0200)]
indicate who rejected a package

Signed-off-by: Ansgar Burchardt <ansgar@debian.org>
12 years agoconfig/*/dinstall.functions: include Built-Using sources
Ansgar Burchardt [Thu, 12 Jul 2012 17:32:20 +0000 (11:32 -0600)]
config/*/dinstall.functions: include Built-Using sources

Include source packages only referenced by Built-Using in per-suite
source indices.

12 years agoconfig/*/dinstall.functions: use files_archive_map instead of location
Ansgar Burchardt [Thu, 12 Jul 2012 17:31:44 +0000 (11:31 -0600)]
config/*/dinstall.functions: use files_archive_map instead of location

12 years agoconfig/*/common: do not touch incoming
Ansgar Burchardt [Thu, 12 Jul 2012 16:55:28 +0000 (10:55 -0600)]
config/*/common: do not touch incoming

The incoming build queue is now managed by manage-build-queues.

12 years agodaklib/utils.py (check_reverse_depends): update for multi-archive changes
Ansgar Burchardt [Tue, 10 Jul 2012 18:28:48 +0000 (12:28 -0600)]
daklib/utils.py (check_reverse_depends): update for multi-archive changes

12 years agoremove now unused code
Ansgar Burchardt [Tue, 31 Jul 2012 17:13:17 +0000 (19:13 +0200)]
remove now unused code

REMOVE :: changesutils.py: no longer in use

12 years agodak/dominate.py: skip suites that are backends for policy queues
Ansgar Burchardt [Sun, 10 Jun 2012 14:22:07 +0000 (16:22 +0200)]
dak/dominate.py: skip suites that are backends for policy queues

12 years agodak/admin.py: add archive subcommand
Ansgar Burchardt [Thu, 31 May 2012 08:24:57 +0000 (10:24 +0200)]
dak/admin.py: add archive subcommand

12 years agodak/manage_build_queues.py: update for multi-archive changes
Ansgar Burchardt [Thu, 14 Jun 2012 17:35:17 +0000 (19:35 +0200)]
dak/manage_build_queues.py: update for multi-archive changes

12 years agodak/rm.py: update for multi-archive changes
Ansgar Burchardt [Mon, 11 Jun 2012 17:41:33 +0000 (19:41 +0200)]
dak/rm.py: update for multi-archive changes

12 years agodaklib/contents.py: update for multi-archive changes
Ansgar Burchardt [Sun, 8 Jul 2012 00:12:19 +0000 (18:12 -0600)]
daklib/contents.py: update for multi-archive changes

12 years agodak/ls.py: update for multi-archive changes
Ansgar Burchardt [Mon, 4 Jun 2012 16:16:42 +0000 (18:16 +0200)]
dak/ls.py: update for multi-archive changes

12 years agodak/control_suite.py: update for multi-archive changes
Ansgar Burchardt [Mon, 6 Aug 2012 15:52:13 +0000 (17:52 +0200)]
dak/control_suite.py: update for multi-archive changes

12 years agodak/check_overrides.py: update for multi-archive changes
Ansgar Burchardt [Sat, 7 Jul 2012 18:59:01 +0000 (12:59 -0600)]
dak/check_overrides.py: update for multi-archive changes

12 years agodaklib/checks.py, daklib/utils.py: check for source files
Ansgar Burchardt [Sat, 7 Jul 2012 17:59:44 +0000 (11:59 -0600)]
daklib/checks.py, daklib/utils.py: check for source files

Reintroduce the check that all source files for the used format are
actually included.

12 years agodak/queue_report.py: update for multi-archive changes
Ansgar Burchardt [Sat, 7 Jul 2012 17:39:06 +0000 (11:39 -0600)]
dak/queue_report.py: update for multi-archive changes

12 years agodak/show_new.py: update for multi-archive changes
Ansgar Burchardt [Sat, 7 Jul 2012 17:38:57 +0000 (11:38 -0600)]
dak/show_new.py: update for multi-archive changes

12 years agodak/check_archive.py: update for multi-archive changes
Ansgar Burchardt [Fri, 6 Jul 2012 00:11:28 +0000 (18:11 -0600)]
dak/check_archive.py: update for multi-archive changes

12 years agodak/process_new.py: update for multi-archive changes
Ansgar Burchardt [Fri, 8 Jun 2012 15:21:15 +0000 (17:21 +0200)]
dak/process_new.py: update for multi-archive changes

12 years agodak/process_policy.py: update for multi-archive changes
Ansgar Burchardt [Fri, 8 Jun 2012 09:28:05 +0000 (11:28 +0200)]
dak/process_policy.py: update for multi-archive changes

12 years agodak/process_upload.py: update for multi-archive changes
Ansgar Burchardt [Thu, 31 May 2012 19:22:33 +0000 (21:22 +0200)]
dak/process_upload.py: update for multi-archive changes

12 years agodak/clean_suites.py: update for multi-archive changes
Ansgar Burchardt [Sun, 10 Jun 2012 14:22:27 +0000 (16:22 +0200)]
dak/clean_suites.py: update for multi-archive changes

12 years agodaklib/policy.py: handle mapped components
Ansgar Burchardt [Mon, 6 Aug 2012 15:03:02 +0000 (17:03 +0200)]
daklib/policy.py: handle mapped components

12 years agomove method to evaluate component mappings to dbconn.py
Ansgar Burchardt [Thu, 9 Aug 2012 13:24:47 +0000 (15:24 +0200)]
move method to evaluate component mappings to dbconn.py

12 years agodaklib/utils.py (poolify): no longer include component
Ansgar Burchardt [Tue, 31 Jul 2012 17:11:58 +0000 (19:11 +0200)]
daklib/utils.py (poolify): no longer include component

The component is no longer part of the filename we store. This is needed
to allow having the same file in multiple components at the same time.

12 years agodak/generate_packages_sources2.py: update for multi-archive
Ansgar Burchardt [Tue, 31 Jul 2012 17:11:03 +0000 (19:11 +0200)]
dak/generate_packages_sources2.py: update for multi-archive

12 years agodak/admin.py: new suites need an archive
Ansgar Burchardt [Tue, 31 Jul 2012 17:09:17 +0000 (19:09 +0200)]
dak/admin.py: new suites need an archive

12 years agodak/dakdb/update76.py: add closes to changes table
Ansgar Burchardt [Thu, 5 Jul 2012 19:01:00 +0000 (13:01 -0600)]
dak/dakdb/update76.py: add closes to changes table

12 years agodaklib/dbconn.py: remove two unused backreferences
Ansgar Burchardt [Tue, 29 May 2012 17:31:40 +0000 (19:31 +0200)]
daklib/dbconn.py: remove two unused backreferences

The backreferences were causing problems when creating new objects via
the ORM.

12 years agodaklib/dbconn.py (PoolFile): add component property
Ansgar Burchardt [Mon, 6 Aug 2012 15:51:57 +0000 (17:51 +0200)]
daklib/dbconn.py (PoolFile): add component property

12 years agoconfig/*/dak.conf: set Dir::Base
Ansgar Burchardt [Fri, 10 Aug 2012 14:01:51 +0000 (16:01 +0200)]
config/*/dak.conf: set Dir::Base

12 years agodatabase changes for multi-archive support
Ansgar Burchardt [Tue, 31 Jul 2012 17:08:53 +0000 (19:08 +0200)]
database changes for multi-archive support

12 years agoUse archive path instead of Dir::Root
Ansgar Burchardt [Tue, 31 Jul 2012 17:33:06 +0000 (19:33 +0200)]
Use archive path instead of Dir::Root

12 years agodak/init_dirs.py: only create directories for active keyrings
Ansgar Burchardt [Sat, 7 Jul 2012 18:50:24 +0000 (12:50 -0600)]
dak/init_dirs.py: only create directories for active keyrings

This avoids problems if inactive keyrings in locations not writable by
the archive user are referenced.

12 years agodak/init_dirs.py: do not use Dir::Pool
Ansgar Burchardt [Wed, 6 Jun 2012 13:43:54 +0000 (15:43 +0200)]
dak/init_dirs.py: do not use Dir::Pool

12 years agochange documentation style
Ansgar Burchardt [Wed, 1 Aug 2012 15:35:24 +0000 (17:35 +0200)]
change documentation style

12 years agoPython modules should not be executable
Ansgar Burchardt [Mon, 6 Aug 2012 08:43:33 +0000 (10:43 +0200)]
Python modules should not be executable

12 years agodaklib/archive.py, daklib/checks.py: implement transition blocks
Ansgar Burchardt [Mon, 6 Aug 2012 09:59:34 +0000 (11:59 +0200)]
daklib/archive.py, daklib/checks.py: implement transition blocks

12 years agodaklib/archive.py: use method to decide which policy queue to use
Ansgar Burchardt [Tue, 31 Jul 2012 12:11:53 +0000 (14:11 +0200)]
daklib/archive.py: use method to decide which policy queue to use

This method can later decide which policy queue to use for the security
archive.

12 years agodaklib/archive.py, daklib/checks.py: implement upload blocks
Ansgar Burchardt [Fri, 3 Aug 2012 14:11:47 +0000 (16:11 +0200)]
daklib/archive.py, daklib/checks.py: implement upload blocks

12 years agodaklib/dbconn.py: use apt_pkg.TagSection instead of implementing our own parser
Ansgar Burchardt [Mon, 6 Aug 2012 13:55:23 +0000 (15:55 +0200)]
daklib/dbconn.py: use apt_pkg.TagSection instead of implementing our own parser

12 years agodaklib/archive.py: check for source when copying binaries
Ansgar Burchardt [Tue, 7 Aug 2012 14:06:07 +0000 (16:06 +0200)]
daklib/archive.py: check for source when copying binaries

12 years agoAdd export subcommand to export upload from policy queues.
Ansgar Burchardt [Sun, 1 Jul 2012 12:13:42 +0000 (14:13 +0200)]
Add export subcommand to export upload from policy queues.

12 years agodaklib/dbconn.py: add basename property to PoolFile
Ansgar Burchardt [Sat, 7 Jul 2012 17:38:42 +0000 (11:38 -0600)]
daklib/dbconn.py: add basename property to PoolFile

12 years agodaklib/dbconn.py: add path property to Suite
Ansgar Burchardt [Fri, 15 Jun 2012 13:40:36 +0000 (15:40 +0200)]
daklib/dbconn.py: add path property to Suite

12 years agodaklib/archive.py: guess source component even with component mappings
Ansgar Burchardt [Fri, 20 Jul 2012 11:10:54 +0000 (13:10 +0200)]
daklib/archive.py: guess source component even with component mappings

12 years agodaklib/archive.py: implement component mappings
Ansgar Burchardt [Sat, 14 Jul 2012 16:32:57 +0000 (10:32 -0600)]
daklib/archive.py: implement component mappings

12 years agoAdd BinaryTimestampCheck.
Ansgar Burchardt [Sat, 14 Jul 2012 00:09:44 +0000 (18:09 -0600)]
Add BinaryTimestampCheck.

12 years agodaklib/config.py: add find_i method
Ansgar Burchardt [Sat, 14 Jul 2012 20:59:17 +0000 (14:59 -0600)]
daklib/config.py: add find_i method

12 years agodaklib/checks.py: add missing join
Ansgar Burchardt [Mon, 9 Jul 2012 16:43:16 +0000 (10:43 -0600)]
daklib/checks.py: add missing join

12 years agodaklib/checks.py: use apt_pkg.version_compare correctly
Ansgar Burchardt [Sun, 8 Jul 2012 21:50:11 +0000 (15:50 -0600)]
daklib/checks.py: use apt_pkg.version_compare correctly

version_compare returns values less than, equal to or greater than zero.
This value is not always -1, 0 or 2(!) as the documentation claims.

Reference: http://bugs.debian.org/680891

12 years agodaklib/checks.py: make version check slightly more verbose
Ansgar Burchardt [Sun, 8 Jul 2012 21:40:34 +0000 (15:40 -0600)]
daklib/checks.py: make version check slightly more verbose

12 years agodaklib/archive.py: handle unexpected names for byhand files
Ansgar Burchardt [Tue, 10 Jul 2012 17:32:59 +0000 (11:32 -0600)]
daklib/archive.py: handle unexpected names for byhand files

12 years agodaklib/archive.py: session → self.session
Ansgar Burchardt [Mon, 9 Jul 2012 16:19:21 +0000 (10:19 -0600)]
daklib/archive.py: session → self.session

12 years agodaklib/checks.py: allow DMs to upload to all suites
Ansgar Burchardt [Mon, 9 Jul 2012 16:00:52 +0000 (10:00 -0600)]
daklib/checks.py: allow DMs to upload to all suites

DMs may upload to all suites, but only the highest version currently in
unstable, experimental or *-backports will be considered for DM-U-A.

12 years agodaklib/archive.py (install_binary): fix use of source_suites
Ansgar Burchardt [Sun, 8 Jul 2012 19:23:25 +0000 (13:23 -0600)]
daklib/archive.py (install_binary): fix use of source_suites

12 years agodaklib/archive.py: use SQLAlchemy 0.6 syntax for join
Ansgar Burchardt [Sun, 8 Jul 2012 18:29:54 +0000 (12:29 -0600)]
daklib/archive.py: use SQLAlchemy 0.6 syntax for join

12 years agodaklib/regexes.py: re_file_binary: arch names can have dashes
Ansgar Burchardt [Sun, 8 Jul 2012 20:55:03 +0000 (14:55 -0600)]
daklib/regexes.py: re_file_binary: arch names can have dashes

12 years agodaklib/regexes.py: re_field_source: fix matching version numbers
Ansgar Burchardt [Sun, 8 Jul 2012 19:53:58 +0000 (13:53 -0600)]
daklib/regexes.py: re_field_source: fix matching version numbers

12 years agodaklib/contents.py: close db session after use
Ansgar Burchardt [Sun, 8 Jul 2012 00:11:56 +0000 (18:11 -0600)]
daklib/contents.py: close db session after use

12 years agoerror out if sql query fails
Ansgar Burchardt [Thu, 12 Jul 2012 15:59:43 +0000 (09:59 -0600)]
error out if sql query fails

Using "echo ... | psql" does not generate an error when something goes
wrong.  Using "psql -c ..." instead does:

  $ echo "SELECT * FROM does_not_exist" | psql projectb 2>/dev/null; echo $?
  0

  $ q="SELECT * FROM does_not_exist"; psql -c "$q" projectb 2>/dev/null; echo $?
  1

This patch switches dak to use the second form to avoid silenty ignoring
errors.

Signed-off-by: Ansgar Burchardt <ansgar@debian.org>
12 years agouse "set -o pipefail" for shell scripts
Ansgar Burchardt [Thu, 12 Jul 2012 15:48:28 +0000 (09:48 -0600)]
use "set -o pipefail" for shell scripts

Signed-off-by: Ansgar Burchardt <ansgar@debian.org>
12 years agoMerge remote-tracking branch 'drkranz/cruft' into merge
Joerg Jaspert [Mon, 9 Jul 2012 05:09:00 +0000 (07:09 +0200)]
Merge remote-tracking branch 'drkranz/cruft' into merge

* drkranz/cruft:
  cruft_report.py: fix alignment of help description
  Pass -R option to cruft-report cron jobs
  Implement rdeps checking in cruft-report
  Use check_reverse_depends function from utils
  Implement check_reverse_depends function

Signed-off-by: Joerg Jaspert <joerg@debian.org>
12 years agocruft_report.py: fix alignment of help description
Luca Falavigna [Sun, 8 Jul 2012 07:19:39 +0000 (07:19 +0000)]
cruft_report.py: fix alignment of help description

Signed-off-by: Luca Falavigna <dktrkranz@debian.org>
12 years agoPass -R option to cruft-report cron jobs
Luca Falavigna [Sun, 8 Jul 2012 00:14:53 +0000 (00:14 +0000)]
Pass -R option to cruft-report cron jobs

Signed-off-by: Luca Falavigna <dktrkranz@debian.org>
12 years agoImplement rdeps checking in cruft-report
Luca Falavigna [Sun, 8 Jul 2012 00:07:42 +0000 (00:07 +0000)]
Implement rdeps checking in cruft-report

Signed-off-by: Luca Falavigna <dktrkranz@debian.org>
12 years agoUse check_reverse_depends function from utils
Luca Falavigna [Sun, 8 Jul 2012 00:07:11 +0000 (00:07 +0000)]
Use check_reverse_depends function from utils

Signed-off-by: Luca Falavigna <dktrkranz@debian.org>