pisi/component.py(Maintainer): Add Maintainer tag to components.xml.
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
2010-02-02 Ozan Çağlayan <ozan@pardus.org.tr>
|
||||||
|
* pisi/component.py(Maintainer): Add Maintainer tag to components.xml.
|
||||||
|
|
||||||
2010-01-26 Serdar Dalgıç <serdar@pardus.org.tr>
|
2010-01-26 Serdar Dalgıç <serdar@pardus.org.tr>
|
||||||
* Handle urllib2 errors of dummy .part files created as a result of unreachable
|
* Handle urllib2 errors of dummy .part files created as a result of unreachable
|
||||||
translations.xml's. Fixes #12136.
|
translations.xml's. Fixes #12136.
|
||||||
|
|||||||
+18
-4
@@ -19,10 +19,9 @@ import pisi.context as ctx
|
|||||||
import pisi.pxml.xmlfile as xmlfile
|
import pisi.pxml.xmlfile as xmlfile
|
||||||
import pisi.pxml.autoxml as autoxml
|
import pisi.pxml.autoxml as autoxml
|
||||||
|
|
||||||
class Error(pisi.Error):
|
class Error(object):
|
||||||
pass
|
|
||||||
|
|
||||||
__metaclass__ = autoxml.autoxml
|
__metaclass__ = autoxml.autoxml
|
||||||
|
|
||||||
class Obsolete:
|
class Obsolete:
|
||||||
|
|
||||||
@@ -50,6 +49,18 @@ class Distribution(xmlfile.XmlFile):
|
|||||||
|
|
||||||
t_Obsoletes = [ [Obsolete], autoxml.optional, "Obsoletes/Package"]
|
t_Obsoletes = [ [Obsolete], autoxml.optional, "Obsoletes/Package"]
|
||||||
|
|
||||||
|
class Maintainer(xmlfile.XmlFile):
|
||||||
|
"representation for component responsibles"
|
||||||
|
|
||||||
|
__metaclass__ = autoxml.autoxml
|
||||||
|
|
||||||
|
t_Name = [autoxml.Text, autoxml.mandatory]
|
||||||
|
t_Email = [autoxml.String, autoxml.mandatory]
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
s = "%s <%s>" % (self.name, self.email)
|
||||||
|
return s
|
||||||
|
|
||||||
class Component(xmlfile.XmlFile):
|
class Component(xmlfile.XmlFile):
|
||||||
"representation for component declarations"
|
"representation for component declarations"
|
||||||
|
|
||||||
@@ -66,7 +77,10 @@ class Component(xmlfile.XmlFile):
|
|||||||
# Information about the component
|
# Information about the component
|
||||||
t_Summary = [autoxml.LocalText, autoxml.optional]
|
t_Summary = [autoxml.LocalText, autoxml.optional]
|
||||||
t_Description = [autoxml.LocalText, autoxml.optional]
|
t_Description = [autoxml.LocalText, autoxml.optional]
|
||||||
t_Group = [ autoxml.String, autoxml.optional ]
|
t_Group = [autoxml.String, autoxml.optional]
|
||||||
|
|
||||||
|
# Component responsible
|
||||||
|
t_Maintainer = [Maintainer, autoxml.optional]
|
||||||
|
|
||||||
# the parts of this component.
|
# the parts of this component.
|
||||||
# to be filled by the component database, thus it is optional.
|
# to be filled by the component database, thus it is optional.
|
||||||
|
|||||||
Reference in New Issue
Block a user