41 raise ValueError ('Unknown repository "%s"' % reponame) |
41 raise ValueError ('Unknown repository "%s"' % reponame) |
42 |
42 |
43 self.name = reponame |
43 self.name = reponame |
44 self.published = not bool (repoinfo.get_value ('extrarepo', default=False)) |
44 self.published = not bool (repoinfo.get_value ('extrarepo', default=False)) |
45 self.url = repoinfo.get_value ('url') |
45 self.url = repoinfo.get_value ('url') |
|
46 self.version = repoinfo.get_value ('version', default='') |
46 self.color = int (repoinfo.get_value ('colorcode', default=0)) |
47 self.color = int (repoinfo.get_value ('colorcode', default=0)) |
47 |
48 |
48 if not self.url: |
49 if not self.url: |
49 raise ValueError ('Repository %s has no url!' % reponame) |
50 raise ValueError ('Repository %s has no url!' % reponame) |
50 |
51 |