From 298e0a41bdc70807746573eb03cf9309e57f2b48 Mon Sep 17 00:00:00 2001 From: rzaitov Date: Wed, 13 Nov 2013 13:34:04 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B5=D0=B0=D0=BB=D0=B8=D0=B7=D0=BE?= =?UTF-8?q?=D0=B2=D0=B0=D0=BB=20=D0=BF=D0=BE=D0=B4=D0=B4=D0=B5=D1=80=D0=B6?= =?UTF-8?q?=D0=BA=D1=83=20=D0=BA=D0=BE=D0=BC=D0=B0=D0=BD=D0=B4=20=D0=B2?= =?UTF-8?q?=D1=8B=D1=81=D1=82=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F=20?= =?UTF-8?q?=D0=BC=D0=BD=D0=BE=D0=B6=D0=B5=D1=81=D1=82=D0=B2=D0=B5=D0=BD?= =?UTF-8?q?=D0=BD=D1=8B=D1=85=20=D0=B7=D0=BD=D0=B0=D1=87=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B9=20=D0=B2=20Info.Plist?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CommandBuilders/PatchInfoPlistArrayCommandBuilder.py | 2 +- .../Tests/ManualTests/infoPlistMultipleValues_test.py | 2 +- scripts/TouchinBuild/utils/InfoPlistPatcher.py | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/TouchinBuild/CommandBuilders/PatchInfoPlistArrayCommandBuilder.py b/scripts/TouchinBuild/CommandBuilders/PatchInfoPlistArrayCommandBuilder.py index bedceb4..0b1425a 100644 --- a/scripts/TouchinBuild/CommandBuilders/PatchInfoPlistArrayCommandBuilder.py +++ b/scripts/TouchinBuild/CommandBuilders/PatchInfoPlistArrayCommandBuilder.py @@ -20,7 +20,7 @@ class PatchInfoPlistArrayCommandBuilder: path = result[0] key = result[1] - value = result[2] + value = parser.values command = PatchInfoPlistCommand(path, key, value) return command diff --git a/scripts/TouchinBuild/Tests/ManualTests/infoPlistMultipleValues_test.py b/scripts/TouchinBuild/Tests/ManualTests/infoPlistMultipleValues_test.py index 3528cfa..0934e61 100644 --- a/scripts/TouchinBuild/Tests/ManualTests/infoPlistMultipleValues_test.py +++ b/scripts/TouchinBuild/Tests/ManualTests/infoPlistMultipleValues_test.py @@ -1,6 +1,6 @@ from CommandBuilders.PatchInfoPlistArrayCommandBuilder import PatchInfoPlistArrayCommandBuilder -line = "inside 'BuildSample/BuildSample/Info.plist' set UISupportedInterfaceOrientations to 'value1:value2:value3'" +line = "inside 'BuildSample/BuildSample/Info.plist' set UISupportedInterfaceOrientations with values 'value1:value2:value3'" cmdBuilder = PatchInfoPlistArrayCommandBuilder() command = cmdBuilder.getCommandFor(line) diff --git a/scripts/TouchinBuild/utils/InfoPlistPatcher.py b/scripts/TouchinBuild/utils/InfoPlistPatcher.py index 9be9127..1d26fac 100644 --- a/scripts/TouchinBuild/utils/InfoPlistPatcher.py +++ b/scripts/TouchinBuild/utils/InfoPlistPatcher.py @@ -61,7 +61,8 @@ class InfoPlistPatcher(): arrayElement = dict_element[valuesIndex] children = arrayElement.findall('string') - arrayElement.remove(children) + for ch in children: + arrayElement.remove(ch) self.fillArrayElementWithValues(arrayElement, valueArr)