aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--overlord/api.py1
-rw-r--r--overlord/overlays/overlay.py13
2 files changed, 14 insertions, 0 deletions
diff --git a/overlord/api.py b/overlord/api.py
index 936af9b..0fe9362 100644
--- a/overlord/api.py
+++ b/overlord/api.py
@@ -212,6 +212,7 @@ class OverlordAPI(object):
'owner_name': overlay.owner_name,
'owner_email': overlay.owner_email,
'homepage': overlay.homepage,
+ 'irc': overlay.irc,
'description': overlay.description,
#'src_uris': [e.src for e in overlay.sources],
'src_uris': overlay.source_uris(),
diff --git a/overlord/overlays/overlay.py b/overlord/overlays/overlay.py
index 4a3cae7..e8730f9 100644
--- a/overlord/overlays/overlay.py
+++ b/overlord/overlays/overlay.py
@@ -210,6 +210,12 @@ class Overlay(object):
self.feeds = [ensure_unicode(strip_text(e)) for e in xml.findall('feed')]
+ _irc = xml.find('irc')
+ if _irc != None:
+ self.irc = ensure_unicode(strip_text(_irc))
+ else:
+ self.irc = None
+
def __eq__(self, other):
for i in ('description', 'homepage', 'name', 'owner_email',
@@ -249,6 +255,10 @@ class Overlay(object):
homepage = ET.Element('homepage')
homepage.text = self.homepage
repo.append(homepage)
+ if self.irc != None:
+ irc = ET.Element('irc')
+ irc.text = self.irc
+ repo.append(irc)
owner = ET.Element('owner')
repo.append(owner)
owner_email = ET.Element('email')
@@ -354,6 +364,9 @@ class Overlay(object):
result += u'\n '.join((u'\n' + link).split(u'\n'))
result += u'\n'
+ if self.irc != None:
+ result += u'\nIRC : ' + self.irc + u'\n'
+
if self.feeds:
result += u'\n%s:' % ((len(self.feeds) == 1) and "Feed" or "Feeds")
for i in self.feeds: