summaryrefslogtreecommitdiffstats
path: root/scripts/reporead.py
AgeCommit message (Collapse)AuthorFilesLines
2009-04-06reporead: dramatically reduce number of queriesDan McGee1-3/+7
Commit 789b5445cf originally set out to fix this problem but was not complete. When doing an update of [extra], the code still did > 2000 database queries because of an ill-placed call to QuerySet.get(). By using a dictionary lookup, we reduce the number of database queries to a measly 4 when updating extra and no new packages are present. Signed-off-by: Dan McGee <dan@archlinux.org>
2009-02-06Misc script changes that haven't been committed.Dusty Phillips1-4/+4
2009-01-01Insert the license field into the package database when packages are updated.Dusty Phillips1-1/+4
2008-11-26reporead: force load of package list from databaseDan McGee1-2/+6
Rather than load one package at a time and put unnecessary load on the database, load them all at once upfront since we are going to need 99% of them anyway. This shifts the burden of work from the database to the python script itself. Signed-off-by: Dan McGee <dan@archlinux.org>
2008-10-06drop a bunch of unusued importsDusty Phillips1-4/+2
2008-09-13fix bug with packages being orphanedDusty Phillips1-4/+8
2008-09-13add some extra debugging outputDusty Phillips1-3/+6
2008-09-13add a threshold check to reporead to try to catch the orphaning packages errorDusty Phillips1-0/+15
2008-08-21Fix for FS#10881 - URL missing in some packages.eliott1-0/+1
This patch adds URL to the fields to be updated on package update. Path is a fix for the following scenario: - a package is added at one point. - later a url is changed or added. - when the package is updated, the following fields are updated: pkgver, pkgrel, pkgdesc, needupdate, last_update There was an original assumption, that some fields were very seldom changed, and it would not have make sense from a performance standpoint to update the fields that never changed, since the update mechanism was written using the django orm..which is 'chatty'. NOTE: It is rather pointless to do a compare to test if the field has changed. It is more performant to simply update the field regardless.
2008-07-06minor refactor to available_archesDusty Phillips1-4/+4
2008-06-30fix depends bug in reporeadDusty Phillips1-1/+1
2008-05-23Updates for deployment.eliott1-0/+3
- Fix for reporead when description is empty. - Fix for settings.py. Middleware wasn't found (changed import name) - Clarity change for dashboard.
2008-04-18fix for dep vercmpeliott1-1/+1
2008-04-17Added some more debug logging.eliott1-1/+6
2008-04-17Added a test for what is effectively packages with super long descriptions.eliott1-0/+4
Chop so we don't throw mysql errors when we try to commit.
2008-04-10Changed to arches and repos in the db.eliott1-7/+8
Added them to the django admin interface as well.
2008-04-06added stanza at topeliott1-0/+1
2008-04-06small fix to arch verificationeliott1-2/+2
2008-04-06changes to try shoehorning multiarch ineliott1-7/+27
2008-03-23moving the reporead parser utility into the archweb_dev root.eliott1-0/+327
reporead uses the same model files, and needs access to the db anyway.