From 5774561b7fbf1201122bcbcfeede0bf36c3622e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20A=C5=9F=C4=B1c=C4=B1?= Date: Mon, 4 Apr 2011 22:34:55 +0000 Subject: [PATCH] specfile: Show licenses in package info MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A modified version of the patch provided by Anıl Özbek. BUG:FIXED:17596 --- pisi/specfile.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pisi/specfile.py b/pisi/specfile.py index d1d2443a..9d1846ff 100644 --- a/pisi/specfile.py +++ b/pisi/specfile.py @@ -371,6 +371,7 @@ class Package: % (self.name, self.version, self.release) s += _('Summary: %s\n') % unicode(self.summary) s += _('Description: %s\n') % unicode(self.description) + s += _('Licenses: %s\n') % u", ".join(self.license) s += _('Component: %s\n') % unicode(self.partOf) s += _('Provides: ') for x in self.providesComar: @@ -456,6 +457,7 @@ class SpecFile(xmlfile.XmlFile): self.source.name, self.history[0].version, self.history[0].release) s += _('Summary: %s\n') % unicode(self.source.summary) s += _('Description: %s\n') % unicode(self.source.description) + s += _('Licenses: %s\n') % u", ".join(self.source.license) s += _('Component: %s\n') % unicode(self.source.partOf) s += _('Build Dependencies: ') for x in self.source.buildDependencies: