summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
2010-02-10reporead: turn into a django-admin commandDan McGee
Rather than struggle with getting the environment set up, let's make this a custom Django admin command and use the flexibility that gives us. This is the initial rough cut of making it happen; further commits should clean up some of the rough edges. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-10reporead: remove unused functionsDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Fix reporead choking on empty valuesDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Handle empty pkgdesc and url a bit betterDan McGee
Put an actual NULL in the database and handle it for both display and import. Also add a migration to clean up any bad data we currently have in there. Fixes FS#17144. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Adjust models and views for nullable maintainerEvangelos Foutras
Signed-off-by: Evangelos Foutras <foutrelis@gmail.com> [Dan: made a few other small touchups] Signed-off-by: Dan McGee <dan@archlinux.org>
2009-10-13reporead: don't blow up on division by zeroDan McGee
We didn't sanity check the length of the DB set, so if it was zero we would blow up. Add a sanity check and also limit the whole thing to only apply if there are > 20 packages in a given {repo, arch} combo. Signed-off-by: Dan McGee <dan@archlinux.org>
2009-10-04reporead: ensure we catch all testing repos in ratio checkDan McGee
With community testing, we want to ignore the ratio check failure there as well. Clean up the whole check a bit and store the percentage in a variable as it is useful in both checks and for output purposes. Signed-off-by: Dan McGee <dan@archlinux.org>
2009-09-26reporead: do all DB updates in one transactionDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2009-09-26reporead: join multivalue attributes with ', 'Dan McGee
Fixes FS#14270. Signed-off-by: Dan McGee <dan@archlinux.org>
2009-09-25Update reporead and model to store pkgbaseDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2009-08-10Dan's patch applied.Dusty Phillips
2009-08-04Whoops! Got to clear that dep list firstDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2009-08-04Fix Dan's package population patch. Now it is tested.Dusty Phillips
2009-08-04reporead: unify add and update package codeDan McGee
We had a bit of a disparity between the add and update sections in reporead, causing issues like FS#12400 to only manifest themselves on updated packages rather than brand new ones. Unify the code into a function that does the updating so this doesn't happen again. Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Dusty Phillips <buchuki@gmail.com>
2009-07-13Fixes #12273. Patch supplied by Henning Garus.Dusty Phillips
2009-04-06reporead: dramatically reduce number of queriesDan McGee
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-07remove unneeded scriptDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2009-02-06Misc script changes that haven't been committed.Dusty Phillips
2009-01-01Insert the license field into the package database when packages are updated.Dusty Phillips
2008-11-25reporead: force load of package list from databaseDan McGee
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-05drop a bunch of unusued importsDusty Phillips
2008-09-13fix bug with packages being orphanedDusty Phillips
2008-09-12add some extra debugging outputDusty Phillips
2008-09-12add a threshold check to reporead to try to catch the orphaning packages errorDusty Phillips
2008-08-21Fix for FS#10881 - URL missing in some packages.eliott
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-05minor refactor to available_archesDusty Phillips
2008-06-29fix depends bug in reporeadrelease_2008-jun-30release_2008-06-30Dusty Phillips
2008-05-23Updates for deployment.eliott
- Fix for reporead when description is empty. - Fix for settings.py. Middleware wasn't found (changed import name) - Clarity change for dashboard.
2008-04-17fix for dep vercmpeliott
2008-04-16Added some more debug logging.eliott
2008-04-16Added a test for what is effectively packages with super long descriptions.eliott
Chop so we don't throw mysql errors when we try to commit.
2008-04-09Changed to arches and repos in the db.eliott
Added them to the django admin interface as well.
2008-04-05added stanza at topeliott
2008-04-05small fix to arch verificationeliott
2008-04-05changes to try shoehorning multiarch ineliott
2008-03-22moving the reporead parser utility into the archweb_dev root.eliott
reporead uses the same model files, and needs access to the db anyway.
2007-12-29removed helper scripteliott
2007-11-03Initial import for public release...eliott
Special Note Prior to git import, approx 90% of the code was done by Judd Vinet. Thanks Judd!