Daha önceki salak typolarımı düzelttim...
This commit is contained in:
+2
-2
@@ -218,10 +218,10 @@ class SpecFile(XmlFile):
|
|||||||
for pkg in self.packages:
|
for pkg in self.packages:
|
||||||
|
|
||||||
if not pkg.partof:
|
if not pkg.partof:
|
||||||
pkg.paftof = self.source.partof
|
pkg.partof = self.source.partof
|
||||||
|
|
||||||
if not pkg.license:
|
if not pkg.license:
|
||||||
pkg.licence = self.source.partof
|
pkg.licence = self.source.license
|
||||||
|
|
||||||
def doMerges(self):
|
def doMerges(self):
|
||||||
"""Merge tags from Source in Packages. Some tags in Packages merged
|
"""Merge tags from Source in Packages. Some tags in Packages merged
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ class SpecFileTestCase(unittest.TestCase):
|
|||||||
def testIsAPartOf(self):
|
def testIsAPartOf(self):
|
||||||
# test existence in Source
|
# test existence in Source
|
||||||
if not "library:util:optparser" in self.spec.source.isa:
|
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):
|
if not isinstance(self.spec.source.isa, list):
|
||||||
self.fail("source.isa is not a list, but it must be...")
|
self.fail("source.isa is not a list, but it must be...")
|
||||||
|
|
||||||
@@ -51,13 +51,12 @@ class SpecFileTestCase(unittest.TestCase):
|
|||||||
# test existence in Package
|
# test existence in Package
|
||||||
pkg = self.spec.packages[0]
|
pkg = self.spec.packages[0]
|
||||||
if not "library:util:optparser" in pkg.isa:
|
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):
|
if not isinstance(pkg.isa, list):
|
||||||
self.fail("source.isa is not a list, but it must be...")
|
self.fail("source.isa is not a list, but it must be...")
|
||||||
|
|
||||||
print pkg.partof
|
|
||||||
if "rpm:archive" != pkg.partof:
|
if "rpm:archive" != pkg.partof:
|
||||||
self.fail("Failed to match PartOf")
|
self.fail("Failed to match PartOf in Package")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user