From 8dd70856597c9ceec470c8278fb9af2eb4b1fb21 Mon Sep 17 00:00:00 2001 From: Faik Uygur Date: Sat, 30 Sep 2006 09:08:24 +0000 Subject: [PATCH] =?UTF-8?q?*=20also=20pkg.description=20override=20is=20he?= =?UTF-8?q?re..=20source=20should=20be=20before=20that.=20=20=20(=C3=96mer?= =?UTF-8?q?=20F.=20Usta=20saw=20this.)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit it was working when tested because fetch_component was also overriding pkg.description later again. so i missed this. there wont be any difference in output packages but this was a bug. --- pisi/specfile.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pisi/specfile.py b/pisi/specfile.py index 065a6d60..6eae9689 100644 --- a/pisi/specfile.py +++ b/pisi/specfile.py @@ -266,6 +266,12 @@ class SpecFile(XmlFile): overrides the tags from Source. There is a more detailed description in documents.""" + #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"] + tmp = [] for pkg in self.packages: if not pkg.summary: @@ -280,9 +286,3 @@ 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"]