Issue tracker moved to https://gitlab.archlinux.org/archlinux/aurweb/-/issues
FS#23039 - aurblup: Do a real sync instead of deleting and re-creating all rows
Attached to Project:
AUR web interface
Opened by Lukas Fleischer (lfleischer) - Friday, 25 February 2011, 10:02 GMT
Last edited by Lukas Fleischer (lfleischer) - Wednesday, 09 March 2011, 17:12 GMT
Opened by Lukas Fleischer (lfleischer) - Friday, 25 February 2011, 10:02 GMT
Last edited by Lukas Fleischer (lfleischer) - Wednesday, 09 March 2011, 17:12 GMT
|
DetailsWe should put some more logic into the aurblup helper to have a real sync instead of a table truncation, followed by a whole bunch of INSERT statements.
|
This task depends upon
Closed by Lukas Fleischer (lfleischer)
Wednesday, 09 March 2011, 17:12 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in 1.8.1.
Wednesday, 09 March 2011, 17:12 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in 1.8.1.
* form an alpm_list of all existing blacklist entries (SELECT name from table)
* form an alpm_list of all expected blacklist entries (read from databases)
* existing - expected = DELETE FROM
* expected - existing = INSERT INTO
[1] http://projects.archlinux.org/aur.git/commit/?id=e72f02872fc1f81bdd609c061f08e69b34153c7e