From 33eb3ea1d14a2520330f0e8cb5295e9b74d68d5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20A=C5=9F=C4=B1c=C4=B1?= Date: Thu, 18 Mar 2010 11:40:07 +0000 Subject: [PATCH] specfile: Rename targetPackage attribute in Action tags as target Service names can be different from the package names as of the previous commit. --- pisi/specfile.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pisi/specfile.py b/pisi/specfile.py index 32f0fc7d..92b75c02 100644 --- a/pisi/specfile.py +++ b/pisi/specfile.py @@ -78,9 +78,9 @@ class Action: # systemRestart # serviceRestart - s_action = [autoxml.String, autoxml.mandatory] + s_action = [autoxml.String, autoxml.mandatory] a_package = [autoxml.String, autoxml.optional] - a_targetPackage = [autoxml.String, autoxml.optional] + a_target = [autoxml.String, autoxml.optional] def __str__(self): return self.action @@ -345,7 +345,7 @@ class Package: if action.package and action.package != self.name: continue - actions.add((action.action, action.targetPackage)) + actions.add((action.action, action.target)) return actions