'Compare two flavor strings. This is part of your preferences
because whether the user prefers installing from source or binary is.'

def compareFlavors(self, left, right):

    if (left in self.flavorOrder):
        if (right in self.flavorOrder):
            return cmp(self.flavorOrder.index(left), self.flavorOrder.index(right))
        return (-1)
    if (right in self.flavorOrder):
        return 1
    return cmp(left, right)
