specfile: Rename targetPackage attribute in Action tags as target
Service names can be different from the package names as of the previous commit.
This commit is contained in:
+2
-2
@@ -80,7 +80,7 @@ class Action:
|
|||||||
|
|
||||||
s_action = [autoxml.String, autoxml.mandatory]
|
s_action = [autoxml.String, autoxml.mandatory]
|
||||||
a_package = [autoxml.String, autoxml.optional]
|
a_package = [autoxml.String, autoxml.optional]
|
||||||
a_targetPackage = [autoxml.String, autoxml.optional]
|
a_target = [autoxml.String, autoxml.optional]
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.action
|
return self.action
|
||||||
@@ -345,7 +345,7 @@ class Package:
|
|||||||
if action.package and action.package != self.name:
|
if action.package and action.package != self.name:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
actions.add((action.action, action.targetPackage))
|
actions.add((action.action, action.target))
|
||||||
|
|
||||||
return actions
|
return actions
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user