Commit Graph

10 Commits

Author SHA1 Message Date
Dan McGee
3fb20c942d Remove maintainer relations if user marked inactive
These users are being marked inactive because they are no longer
developers; thus they should have all of their maintainer relations
removed from the database. This is one of two causes of "orphan" package
relation objects, the other being pkgbase values that go out of
existence.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-02-19 00:32:26 -06:00
Dan McGee
ed4eca37fc Add unicode methods for packages models
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-02-18 23:55:11 -06:00
Dan McGee
4444f25d5c Move license to a related model
This allows us to store multiple licenses per package in a more elegant
fashion, and will later allow us to search and filter on this information.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-02-15 13:51:11 -06:00
Dan McGee
376ce4a69e Clean up Package related objects code
Main change is just to move groups from the default packagegroup_set
location to a related_name of groups. Also refer to the Package class
directly rather than by text string if we have it available.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-02-15 13:51:11 -06:00
Dan McGee
63696563a3 Add package groups model and display to packages
They show up but aren't hotlinked to anything...just yet.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-25 15:49:06 -05:00
Dan McGee
fe832ea845 Move package maintainer off of package model
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-27 16:15:20 -05:00
eliott
9b7b512254 Moved models around 2008-03-08 00:13:41 -08:00
eliott
3e297efad8 Massive retab fest.
Also added vim command comment to the end of files.
2007-12-29 16:42:55 -08:00
eliott
50283888bf Fix for FS#8547 2007-11-17 13:26:16 -05:00
eliott
39a548fd26 Initial import for public release...
Special Note
  Prior to git import, approx 90% of the code was done by Judd Vinet. Thanks Judd!
2007-11-03 03:45:10 -04:00