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
Joerg Jaspert [Fri, 11 May 2012 10:17:59 +0000 (12:17 +0200)]
Merge remote-tracking branch 'ansgar/pu/wheezy' into merge
* ansgar/pu/wheezy:
Remove dead code.
Remove redundant indices from database.
Add path to removal logs to minimal configuration.
Make dominate -s <suite> work without Obsolete::Options::Suite set.
setup/README: update for postgresql-9.1
setup/README: remove no longer needed postgresql packages
stop using deprecated python-apt functions
merge check for Description field with other checks
add our own deb_extract_control function
Stop passing order_by as a string.
Allow use with SQLAlchemy 0.7
Ansgar Burchardt [Thu, 10 May 2012 12:11:23 +0000 (14:11 +0200)]
Remove dead code.
In ca9e3716b22771d88dcd7ca2e2f180f9e1707a10 the code to create system users was
removed from add_user.py, but related functions and a command line argument
were still kept. This commit removes that code.
* scripts/debian/link_morgue.sh: New script, converting morgue/ into a
set of symlinks, then transferring them to the morgue host
* config/debian/cron.daily: Add link_morgue
Joerg Jaspert [Sat, 24 Mar 2012 17:04:14 +0000 (18:04 +0100)]
buildd add keys
ignore the gpg error message, redirecting to dev/null. can appear if we have a new arch/buildd, then its a key-not-found complaint, which we dont care about. and we also care nothing about any other error it might give us here, so off it goes
Joerg Jaspert [Sun, 11 Mar 2012 11:56:41 +0000 (12:56 +0100)]
Merge remote-tracking branch 'ansgar/description-md5' into merge
* ansgar/description-md5:
generate_translations: do not include some descriptions more than once
Also make generate_translations work with PostgreSQL 9.1.
Ansgar Burchardt [Sun, 11 Mar 2012 11:25:05 +0000 (11:25 +0000)]
generate_translations: do not include some descriptions more than once
By no longer using s.source in the GROUP BY clause, identical
descriptions for binary packages built by more than one source
no longer appear multiple times in Translation-en.