summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2010-03-27Simplify code now that pkgbase is always definedrelease_2010-03-28Dan McGee3-13/+7
This allows some of our queries to get a lot simpler as well as removing the pkgbase_safe property added earlier. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-27Make pkgbase non-null and indexedDan McGee2-1/+212
Now that we always populate it, this change will make it a lot easier to use when relating to other tables, such as our maintainer relations. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-27Make reporead always populate pkgbaseDan McGee2-1/+212
And also add a data migration to add the value retroactively for anything already in our database. We simply fall back to pkgname if pkgbase isn't available. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-27Drop maintainer column off packages modelDan McGee2-1/+211
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-27Move package maintainer off of package modelDan McGee12-45/+410
This is an attempt to fix our long-standing problems dealing with maintainer information. Move the actual maintainer information off of the package model into a PackageRelation object, which has some flexibility to later represent more than just maintainership. This solves multiple problems: * If a package gets accidentally deleted, so did the maintainer info * Testing packages have always shown up as orphans * With split packages, it was easy to miss some of the sub-packages This commit does not include the deletion of the original maintainer column; that will come at a later time when I feel more confident that the data was migrated correctly. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-22s/newsletter/magazine/ on front pagerelease_2010-03-22Dan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-22Make sure 'More' links don't wrapDan McGee1-2/+2
They look kind of silly on the front page when they are wrapped even though the text is extremely short. Add a CSS property to hopefully prevent wrapping. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-22Replaced titlebar.png with OS X compatible PNGThayer Williams1-0/+0
Signed-off-by: Thayer Williams <thayerw@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-22Add ArchCon logo and place in front page templateDan McGee2-0/+4
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-20Make rsync fields on mirrors optionalrelease_2010-03-20Dan McGee2-2/+203
I think I bumbled this up a while back, but make sure they aren't required and we use the empty string for all of those that don't provide a value. Fixes FS#18763. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-20Switch some hardcoded urls to url tag usageDan McGee3-14/+14
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-11urls: add several named URL patternsDan McGee1-16/+15
This will allow us to kill some hardcoded paths elsewhere as well as play some games with the sitemap. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-11Add link from files back to packageDan McGee1-0/+3
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-10Make the new 'testing' flag on repo a bit clearerrelease_2010-03-10Dan McGee2-2/+8
Since at least two repositories currently fall under this flag, add some help text and visibility to this column. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-10Fix one missed testing repo checkDan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-10Sitemaps: split and index, add package filesDan McGee2-6/+20
Split it up as it is growing rather large, and add all the package files views to the mix so Google or anyone can pick those up. They get a slightly lower priority (if that even matters). Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-06Fix up get_depends logic a bitDan McGee1-12/+16
We were not handing depends of 'any' packages correctly if they depended on arch-dependent packages; we labeled them all as virtual. If we have an 'any' package, drop the arch screening and just pick one to link to. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-06Use repo.testing flag instead of test-based checksDan McGee4-8/+8
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-06Add a flag to the repo to indicate its 'testing' statusDan McGee3-0/+389
This will eventually lead into a cleanup where we don't do checks on the repo name all over the place like we currently do. There are two migrations involved here; one to add the column and one to deduce the correct value from the existing names of the repos. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-06Fix get_depends() method descriptionDan McGee1-10/+6
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-06Make mirror notes a text fieldrelease_2010-03-06Dan McGee2-1/+199
Rather than a short 255 character field. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-06Add tier column to mirrorlist pageDan McGee1-0/+2
Obviously this page could use some more work anyway, but for now just quickly throw it in there. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-06Kill rsync IP hostname fieldDan McGee2-2/+197
This wasn't strictly necessary and was more hassle than it was worth. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-06Add mirror rsync credentials dataDan McGee2-0/+203
Allow this to be stored in the database for later use by an external generation script for the rsyncd secrets file. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-06Mirror tiering enhancementsDan McGee3-2/+216
Add ability to track tier and upstream mirror in the database. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-03Merge branch 'cdn-jquery'release_2010-03-04Dan McGee7-156/+176
2010-03-03Make files view use jquery CDN template tagDan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-03Merge branch 'master' into cdn-jqueryDan McGee22-97/+322
Conflicts: templates/todolists/view.html
2010-03-01Add '(testing)' suffix to dependencies listrelease_2010-03-02Dan McGee1-2/+2
Just like it already was in the required by list. This should address FS#10475. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-01Fix up HTML titles on a lot of pagesDan McGee11-2/+11
We didn't include them on many pages, or the ones we did weren't always useful. Also try to keep the boilerplate to a minimum so you can see the important bits in the title. 'Arch Linux - ' comes first in all titles, and from there it can be filled in with something useful. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-01Unify spelling of 'Todo'Dan McGee2-5/+6
We used 'Todo', 'ToDo', and 'To-do' in different places. Unify them all to the first. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-01Fix busted HTML on flag package pageDan McGee1-1/+2
Missing a closing div and no real need for the br tag. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-01Merge branch 'package-files'Dan McGee9-43/+304
2010-03-01Drop wiki stylesDan McGee1-47/+0
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-28Revert "Update logo"release_2010-02-28Dan McGee1-0/+0
This reverts commit f3db1bb123ee4c61e7bb7e8a0c671d831a1ce990. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-27Make reporead.py not executableDan McGee1-0/+0
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-27Upgrade jQuery to 1.4.2Dan McGee3-153/+155
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-27Convert templates to use jquery cdn tagDan McGee2-3/+2
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-27Add CDN templatetag packageDan McGee2-0/+19
For now, this contains one new template tag- 'jquery'. This will allow us to use the Google AJAX CDN in non-debug environments, since there is really no need for us to be the source of this common file. In the future this package may gain other static media resource tags as well. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-27reporead: add --filesonly optionDan McGee1-26/+47
This will allow files to be imported for all existing packages in the database while not worrying about the files database being a touch out of date. It utilizes the new files_last_update column to perform the insertion and updating of file lists intelligently. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-27Add a files_last_update columnDan McGee2-0/+194
This is necessary to keep all of our junk in sync since we aren't guaranteed to have an up to date files database all the time. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-27Show message if no files availableDan McGee2-3/+7
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-27reporead: support reading files entries againDan McGee1-8/+19
This depends on some changes I made to our script that generates the file list databases, but it allows us to treat the files databases in an almost identical manner to a regular database. The only difference is the fact that it contains 'files' entries. One catch that will be addressed in a separate patch: if the files DB lags behind the regular DB, running an update from it could cause packages in the web interface to be downgraded. A 'no-add/remove' option could be helpful for this case. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-27files: template reuseDan McGee3-9/+2
Get rid of the copy/paste by including the sub-template. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-27Ensure our cache is correct with AJAX requestsDan McGee2-0/+4
Since the same URLs serve two different responses based on the request being AJAX or not, we want to ensure we don't cache the wrong one and serve it up incorrectly. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-27Make files view AJAX if supportedDan McGee3-2/+30
This will put the filelist inline on the package details page if using a capable browser. It should still fallback to a separate page if necessary (e.g. all those users using links on the site). Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-27Order the package files when viewingDan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-27Re-add link to package filesDan McGee1-3/+2
Put the link that has been commented back on the page, and point it at the new URL for package files. Also fix the page title to be more in line with all the other pages on the site. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-27Make the package files view look betterDan McGee1-5/+10
Make it look more like the dependencies and required-by panes on the main package details page. Some day you might even find it shows up below there too via an AJAX call or something. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-27Bring package files view up to speedDan McGee2-5/+7
Move it away from the numeric pkgid-based view of old to the new pretty URL format. This does nothing to actually make the view show files (or even provide a link to it), but that will come in future commits. Signed-off-by: Dan McGee <dan@archlinux.org>