diff --git a/pungi/wrappers/variants.py b/pungi/wrappers/variants.py index 14e66647..6625642e 100755 --- a/pungi/wrappers/variants.py +++ b/pungi/wrappers/variants.py @@ -185,6 +185,9 @@ class Variant(object): def __str__(self): return self.uid + def __repr__(self): + return 'Variant(id="{0.id}", name="{0.name}", type="{0.type}", parent={0.parent})'.format(self) + def __cmp__(self, other): # variant < addon, layered-product < optional if self.type == other.type: