Katello/katello — pull request #991 by bbuckingham (2012-11-02 16:06:40+00:00)
Title: 864936 - update product labels to ensure uniqueness

This commit contains changes to ensure that product labels are
unique.

If the user does not provide a label, one will be assigned.
If the user provides a label and it is already in use, one will be
assigned.

When a label is assigned, the algorithm will be to 'labelize' the
product name. Once labelized, if there is no product with that
label, the labelized value will be used; however, if a product does
exist, a "_"+cp_id will be appended to the lablized value to
ensure uniqueness.

This commit also contains a minor change to repos to ensure that
a user cannot assign 2 repos in the same product with the same
label.