* also pkg.description override is here.. source should be before that.
(Ömer F. Usta saw this.) 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.
This commit is contained in:
+6
-6
@@ -266,6 +266,12 @@ class SpecFile(XmlFile):
|
|||||||
overrides the tags from Source. There is a more detailed
|
overrides the tags from Source. There is a more detailed
|
||||||
description in documents."""
|
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 = []
|
tmp = []
|
||||||
for pkg in self.packages:
|
for pkg in self.packages:
|
||||||
if not pkg.summary:
|
if not pkg.summary:
|
||||||
@@ -280,9 +286,3 @@ class SpecFile(XmlFile):
|
|||||||
pkg.icon = self.source.icon
|
pkg.icon = self.source.icon
|
||||||
tmp.append(pkg)
|
tmp.append(pkg)
|
||||||
self.packages = tmp
|
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"]
|
|
||||||
|
|||||||
Reference in New Issue
Block a user