Daha önceki salak typolarımı düzelttim...

This commit is contained in:
Barış Metin
2005-06-29 10:41:33 +00:00
parent db4ce18241
commit 769c9a0370
2 changed files with 5 additions and 6 deletions
+2 -2
View File
@@ -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
+3 -4
View File
@@ -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")