Merge remote-tracking branch 'ansgar/pu/multiarchive-1' into merge
* ansgar/pu/multiarchive-1:
Add export subcommand to export upload from policy queues.
daklib/dbconn.py: add basename property to PoolFile
daklib/dbconn.py: add path property to Suite
daklib/archive.py: guess source component even with component mappings
daklib/archive.py: implement component mappings
Add BinaryTimestampCheck.
daklib/config.py: add find_i method
daklib/checks.py: add missing join
daklib/checks.py: use apt_pkg.version_compare correctly
daklib/checks.py: make version check slightly more verbose
daklib/archive.py: handle unexpected names for byhand files
daklib/archive.py: session → self.session
daklib/checks.py: allow DMs to upload to all suites
daklib/archive.py (install_binary): fix use of source_suites
daklib/archive.py: use SQLAlchemy 0.6 syntax for join
daklib/regexes.py: re_file_binary: arch names can have dashes
daklib/regexes.py: re_field_source: fix matching version numbers
daklib/contents.py: close db session after use
error out if sql query fails
use "set -o pipefail" for shell scripts
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
Merge remote-tracking branch 'ansgar/pu/multiarchive-1' into merge
* ansgar/pu/multiarchive-1:
Drop column origin_server from archive table.
Reference archive table from suite and add path to archive root
typo: "pakcages" → "packages"
Also import re_bin_only_nmu from daklib.regexes
don't require all binaries to be included
use discard instead of remove
Add module to process policy queue uploads.
Add module with pre-acceptance tests.
Add module to handle archive manipulation.
Add module to handle uploads not yet installed to the archive.
process-unchecked.new: drop __SUMMARY__ for now
remove two template variables
utils.py: add call_editor function
utils (send_message): add option to write mail to files
utils.py (mail_addresses_for_upload): only try to use address from key if there is one
If a package has architecture-specific packages or a buildd uploads only
architecture-dependant packages and there are also arch-indep packages,
the upload does not include all binaries from the Binary field.
Uploads that do not include source would trigger an exception when
remove is used. discard does not raise an exception when the element
does not exist.
Drop __SHORT_SUMMARY__ and __STABLE_WARNING__. The former provides no
interesting information (just a list of installed files); the latter
seems no longer used and nobody missed it so far.
utils (send_message): add option to write mail to files
Add an option to write outgoing mails to a file in the directory given
by Dir::Mail. This is intended for use on development installations
where no real mail should be sent.
Merge remote-tracking branch 'ansgar/pu/multiarchive-1' into merge
* ansgar/pu/multiarchive-1:
config.py: Add __contains__ method
fstransactions.py: allow mode to be a string
fstransactions.py: also use mode for directories
tests: add a few packages for testing dak
utils.py: add mail_addresses_for_upload function
gpg_get_key_addresses: return a list instead of a set
textutils.py: don't try to convert unicode strings again
Add regexp to match .changes files.
Correctly match version part of source tarballs
dominate: convert to str
Remove no longer used templates.
Remove unused functions.
Ansgar Burchardt [Thu, 28 Jun 2012 10:07:42 +0000 (12:07 +0200)]
gpg_get_key_addresses: return a list instead of a set
gpg tries to return the primary uid (or newest uid if there is no explicit
primary) first. dak should prefer this address, but we need a list to know the
order of addresses gpg returned.
Gergely Nagy [Thu, 14 Jun 2012 08:14:43 +0000 (08:14 +0000)]
queue-report: Also print unprocessed changes files
For the sake of clarity, if there are any changes files that couldn't
be processed (due to our inability to find the source, see byhand +
ftptrainee case), also display those in the text report.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
Gergely Nagy [Wed, 13 Jun 2012 13:19:42 +0000 (13:19 +0000)]
queue_report: Ignore stuff without a source
Trainees can't see files in byhand, therefore process_changes_file in
queue_report is unable to handle changes files in queue/byhand. As a
workaround, whenever it encounters a changes file that it can't read
(and thus, cache[filename] has no source key), ignore that and
continue.
The result is that trainees will be able to use queue-report without a
backtrace, they just won't be able to see byhand, as intended. For
everyone else, queue-report should work as before.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
Joerg Jaspert [Sat, 2 Jun 2012 13:50:28 +0000 (15:50 +0200)]
Merge remote-tracking branch 'refs/remotes/ansgar/pu/multiarchive-1' into merge
* refs/remotes/ansgar/pu/multiarchive-1:
add module for filesystem transactions
Add nicer and stricter regular expressions.
override, override-disparity: rename suite variable to suite_name
daklib/dbconn.py: Don't list install_date twice in not-null constraint.
fix typo in daklib/gpg.py: seqeuence -> sequence
Allow to set fingerprint in __init__ for DBBinary and DBSource.
Remove split-done.
Remove import-known-changes and import-new-files.
process-upload: document -d, --directory option
We now allow non-gzip data in udebs
We keep the statements to create and fill the temporary table separate from the
SELECT query itself which should fix the original problem in a different way.
Joerg Jaspert [Fri, 11 May 2012 19:46:56 +0000 (21:46 +0200)]
Merge remote-tracking branch 'ansgar/pu/wheezy' into merge
* ansgar/pu/wheezy:
Change how compression methods are selected in FileWriter
Use with statement instead of temporary table
Move "import utils" into function