Joerg Jaspert [Tue, 3 Feb 2009 21:20:42 +0000 (22:20 +0100)]
cron.dinstall
<Ganneff> now
<Ganneff> one would think its helpful to not only output this into the logfile of dinstall
<Ganneff> but actually redirect it somewhere
<weasel> you think?
<Ganneff> maybe you want to parse our log instead?
<weasel> :)
<Ganneff> $base/ftp/indices/package-file.map that it will end up as
<weasel> .bz2
<Ganneff> always those wishes
Peter Palfrader [Tue, 3 Feb 2009 13:02:32 +0000 (06:02 -0700)]
Add make_pkg_file_mapping.py
make_pkg_file_mapping prints, for every file in the pool, which source package
and version it belongs to and for binary packages additionally which arch,
binary package and binary package version it has in a standard rfc2822-like
format.
Joerg Jaspert [Sun, 25 Jan 2009 16:51:40 +0000 (17:51 +0100)]
Merge commit 'stew/categorize-bts' into merge
* commit 'stew/categorize-bts':
git rid of useless email realeted imports. added docstring for module
Use dak's facility for sending email. Add bts-categorize to cron.dinstall
dont send email unless there is something to categorize
move bts_categorize into dak, send email
drop logging level
a script that categorizes bugs against ftp.debian.org
Joerg Jaspert [Sat, 24 Jan 2009 19:27:47 +0000 (20:27 +0100)]
Merge commit 'mhy/regexes' into merge
* commit 'mhy/regexes':
remove unused regexes
docstring update
Only import regexes we're using
whoops, put sensible comment in
Move regexes into a module so we can keep track
Mark Hymers [Sat, 24 Jan 2009 18:27:22 +0000 (18:27 +0000)]
Move regexes into a module so we can keep track
Rather than scatter regexes all over the place (for things
which should probably be functions hiding the implementation
detail anyways such as "is this a valid package version"),
move them into daklib.regexes.
I'm not convinced this is an immediate win, but I think it's
one step on a long road...
Mike O'Connor [Sat, 24 Jan 2009 17:19:07 +0000 (12:19 -0500)]
move bts_categorize into dak, send email
bts_categorize can now be called as "dak bts-categorize"
added command line options (try 'dak bts-categorize -h')
it now optionally sends email to control@bugs.debian.org
Joerg Jaspert [Fri, 23 Jan 2009 23:06:54 +0000 (00:06 +0100)]
temp_filename
stop using mktemp and use mkstemp. Also use the functions with all their
features, like setting prefix, instead of trying to do that ourself.
Yikes, one-liner now, could remove the function alltogether and instead
use mkstemp directly, but *maybe* we want to get more code into here,
so lets keep it for now.
depending on what kind of file we have we generate the checksums in
different ways. For the uncompressed sum we continue reading in all the
content and hand that as a variable to apt_pkg.*sum. Turns out this does
not work for the already compressed files, there we now go and just hand
the opened file_handle to apt_pkg.*sum.
Mike O'Connor [Wed, 21 Jan 2009 22:58:13 +0000 (17:58 -0500)]
fix generate_index_diffs' smartopen by replacing it with a smartread
smartread slurps the contents of the file into a string, we need to do this
becuase apt_pkg.sha1sum won't accept a 'gzip open file' but will accept a
string
Joerg Jaspert [Thu, 15 Jan 2009 00:44:38 +0000 (01:44 +0100)]
Merge commit 'stew/master' into merge
* commit 'stew/master':
make examine_package check dependencies based on suite
Get rid of non ascii character in source file.
update dinstall.html for 4 daily dinstall runs
fix removals rss feed when there are fewer than 16 removals
Mike O'Connor [Wed, 14 Jan 2009 17:23:53 +0000 (12:23 -0500)]
make examine_package check dependencies based on suite
examin_package.py would assume that a package when targetting unstable when
checking Depends and Recommends relationships. Now it will allow the suite to
be specified when checking a .deb or .dsc and will read the suite from the
.changes file when checking .changes
Mike O'Connor [Wed, 14 Jan 2009 16:14:17 +0000 (11:14 -0500)]
Get rid of non ascii character in source file.
There was a ß in utils.py that I think was supposed to be a 0. Either it needs
to be changed to a 0 or the character encoding needs to be declared at the top
of the source file. I opted to change the character to a 0.
Mike O'Connor [Wed, 14 Jan 2009 07:27:08 +0000 (02:27 -0500)]
a script that categorizes bugs against ftp.debian.org
This script uses python-btsutils to look for bugs filed against ftp.debian.org which have not yet been classified with usertags. Any unclassified bugs are matched against regular expression and possibly being classified. Currently the script only classifies bugs with RM: as their subject and moves them into the "Removal Requested" class. Currently the script just outputs a list of commands suitable for emailing to control@debian.org
Joerg Jaspert [Fri, 9 Jan 2009 17:26:33 +0000 (18:26 +0100)]
signature checking changes
Adjust the gpgv signature check. Add one more case of broken key to detect,
EXPKEYSIG. From gnupg docs:
EXPKEYSIG <long keyid> <username>
The signature with the keyid is good, but the signature was
made by an expired key. The username is the primary one
encoded in UTF-8 and %XX escaped.
Also, handle KEYEXPIRED right. The first argument given back is NOT the keyid,
it is the timestamp when the key expired. From gnupg docs:
KEYEXPIRED <expire-timestamp>
The key has expired. expire-timestamp is the expiration time
in seconds after the epoch.
Note, that TIMESTAMP may either be a number with seconds since
epoch or an ISO 8601 string which can be detected by the
presence of the letter 'T' inside.
So lets go and see if we find a T, if not convert the epoch to something
more easily human readable in our reject message.