From 769c9a0370099db1c0cae64095becd51f5173a54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Wed, 29 Jun 2005 10:41:33 +0000 Subject: [PATCH] =?UTF-8?q?Daha=20=C3=B6nceki=20salak=20typolar=C4=B1m?= =?UTF-8?q?=C4=B1=20d=C3=BCzelttim...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pisi/specfile.py | 4 ++-- tests/specfiletests.py | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/pisi/specfile.py b/pisi/specfile.py index 98ae1d64..cdd62bbc 100644 --- a/pisi/specfile.py +++ b/pisi/specfile.py @@ -218,10 +218,10 @@ class SpecFile(XmlFile): for pkg in self.packages: if not pkg.partof: - pkg.paftof = self.source.partof + pkg.partof = self.source.partof if not pkg.license: - pkg.licence = self.source.partof + pkg.licence = self.source.license def doMerges(self): """Merge tags from Source in Packages. Some tags in Packages merged diff --git a/tests/specfiletests.py b/tests/specfiletests.py index 512cba62..80fd198b 100644 --- a/tests/specfiletests.py +++ b/tests/specfiletests.py @@ -41,7 +41,7 @@ class SpecFileTestCase(unittest.TestCase): def testIsAPartOf(self): # test existence in Source if not "library:util:optparser" in self.spec.source.isa: - self.fail("Failed to match isA in Source") + self.fail("Failed to match IsA in Source") if not isinstance(self.spec.source.isa, list): self.fail("source.isa is not a list, but it must be...") @@ -51,13 +51,12 @@ class SpecFileTestCase(unittest.TestCase): # test existence in Package pkg = self.spec.packages[0] if not "library:util:optparser" in pkg.isa: - self.fail("Failed to match isA....") + self.fail("Failed to match IsA in Package") if not isinstance(pkg.isa, list): self.fail("source.isa is not a list, but it must be...") - print pkg.partof if "rpm:archive" != pkg.partof: - self.fail("Failed to match PartOf") + self.fail("Failed to match PartOf in Package")