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.
Mike O'Connor [Fri, 2 Jan 2009 23:58:12 +0000 (18:58 -0500)]
update dinstall.html for 4 daily dinstall runs
dinstall.html contains a javascript countdown timer used to estimate when the
next dinstall run will occur. It was hardcoded for 2 daily dinstall runs.
This patch hard codes it to 4 daily runs.
There previously was a link to the announcement of the switch to 2 daily
dinstall runs. I was not able to locate a similar announcement to the switch
to 4 daily runs, so I simply removed the link to the announcement.
Signed-off-by: Mike O'Connor <stew@debian.org> Signed-off-by: Joerg Jaspert <joerg@debian.org>
Mike O'Connor [Sat, 3 Jan 2009 00:03:10 +0000 (01:03 +0100)]
fix removals rss feed when there are fewer than 16 removals
To: joerg@debian.org
Date: Fri, 02 Jan 2009 23:28:02 +0100
X-Spam-Status: No, score=-3.586 tagged_above=-99 required=4.6 tests=[AWL=0.013, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
User-Agent: Mutt/1.5.18 (2008-05-17)
tools/removals.pl was making the assumption that at least 16 removals exist in
removals.txt. If there are not, it creates and rss feed with with bogus empty
removals to pad the output to 16 entries. This patch removes this false
assumption.
Signed-off-by: Mike O'Connor <stew@debian.org> Signed-off-by: Joerg Jaspert <joerg@debian.org>
Mike O'Connor [Fri, 2 Jan 2009 23:53:02 +0000 (18:53 -0500)]
update dinstall.html for 4 daily dinstall runs
dinstall.html contains a javascript countdown timer used to estimate when the
next dinstall run will occur. It was hardcoded for 2 daily dinstall runs.
This patch hard codes it to 4 daily runs.
There previously was a link to the announcement of the switch to 2 daily
dinstall runs. I was not able to locate a similar announcement to the switch
to 4 daily runs, so I simply removed the link to the announcement.
Joerg Jaspert [Fri, 2 Jan 2009 22:23:27 +0000 (23:23 +0100)]
Merge commit 'ncomm/dm_upload_allowed' into merge
* commit 'ncomm/dm_upload_allowed':
Fixed to handle multiple DD/DM keyrings, and ldap to handle new DM status
Modified dm status to be a keyring specific switch, modified update1
Fixed it so the fingerprint table is properly referenced vs the uid
fix typo
Fixed and made changes for Joerg.
Actually use the sleep call ...
Updated update_db.py to use a lockfile properly and to properly wait.
fixed update_db not to have a braindead mistake. Don't write code at 1 in the
Added update system for the database, and the first update script
Changed process_unchecked.py to handle DM's (slightly) more sanely.
Modified dak to use non-braindead DM schema, and use an actual column for
Corrected a bug with the handling of DM-Upload-Allowed and experimental suites of the archive
Added dm-upload-allowed flag to exist, and added support for all
Mike O'Connor [Fri, 2 Jan 2009 22:21:46 +0000 (17:21 -0500)]
fix removals rss feed when there are fewer than 16 removals
tools/removals.pl was making the assumption that at least 16 removals exist in
removals.txt. If there are not, it creates and rss feed with with bogus empty
removals to pad the output to 16 entries. This patch removes this false
assumption.