From ccdb66037edc96a5a0520c2e365feb210e8a7920 Mon Sep 17 00:00:00 2001 From: Faik Uygur Date: Fri, 29 Sep 2006 18:59:37 +0000 Subject: [PATCH] * change Description to optional until repo is ready. http://liste.pardus.org.tr/gelistirici/2006-September/002332.html --- pisi/specfile.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pisi/specfile.py b/pisi/specfile.py index 03f578c9..065a6d60 100644 --- a/pisi/specfile.py +++ b/pisi/specfile.py @@ -148,7 +148,7 @@ class Source: t_Homepage = [autoxml.String, autoxml.optional] t_Packager = [Packager, autoxml.mandatory] t_Summary = [autoxml.LocalText, autoxml.mandatory] - t_Description = [autoxml.LocalText, autoxml.mandatory] + t_Description = [autoxml.LocalText, autoxml.optional] t_IsA = [ [autoxml.String], autoxml.optional] t_PartOf = [autoxml.String, autoxml.optional] t_Icon = [ autoxml.String, autoxml.optional] @@ -280,3 +280,9 @@ class SpecFile(XmlFile): pkg.icon = self.source.icon tmp.append(pkg) self.packages = tmp + + #TODO: Description should be mandatory. Remove this crap when repo is ready. + #http://liste.pardus.org.tr/gelistirici/2006-September/002332.html + if not self.source.description: + self.source.description = autoxml.LocalText("Description") + self.source.description["en"] = self.source.summary["en"]