FS#2329 - Database syncing/coordination with main site database
Attached to Project:
AUR web interface
Opened by Paul Mattal (paul) - Monday, 07 March 2005, 04:29 GMT
Last edited by Callan Barrett (wizzomafizzo) - Thursday, 27 March 2008, 08:47 GMT
Opened by Paul Mattal (paul) - Monday, 07 March 2005, 04:29 GMT
Last edited by Callan Barrett (wizzomafizzo) - Thursday, 27 March 2008, 08:47 GMT
|
Details
We need to import and periodically sync the main
current/extra database package info into AUR for
dependencies and quick searching for existing packages.
|
This task depends upon
Closed by Callan Barrett (wizzomafizzo)
Thursday, 27 March 2008, 08:47 GMT
Reason for closing: Won't fix
Additional comments about closing: AUR is separate form the main site, no longer has the broken option to search the official repos.
Thursday, 27 March 2008, 08:47 GMT
Reason for closing: Won't fix
Additional comments about closing: AUR is separate form the main site, no longer has the broken option to search the official repos.
I think this approach might be more effective than periodic syncs.
But I'm still open to considering it. Let me dump the main DB for you and you can have a look at it.
It seems to have all the fields we might need, and they correspond pretty well with the AUR ones. The most notable difference is that it's got pkgver and pkgrel, while we only have Version, but that's not difficult to work around.
As a first step, we could set up something simple and non-cached where dependency links link to official repo pages if they exist (checked by name) in official repos. This is easy enough to do, just grant our sql user SELECT privilege on the packages table in database archweb, and add a couple lines of code to check if a dep exists in the official db, if it does, generate the link appropriatly.
Later on, we could add checking during submit and update that does a similar existence check, and blocks uploads if they are already in official repos.