Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/pms-test-suite:master commit in: pmstestsuite/library/standard/
Date: Wed, 27 Jul 2011 16:50:41
Message-Id: d4373bbc1dd9a8bb9fd4c0af13ef9c44ec39ceb4.mgorny@gentoo
1 commit: d4373bbc1dd9a8bb9fd4c0af13ef9c44ec39ceb4
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 27 16:38:57 2011 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 27 16:38:57 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=d4373bbc
7
8 Switch from pkg.metadata[] to pkg.defined_phases.
9
10 ---
11 pmstestsuite/library/standard/special_vars.py | 4 ++--
12 1 files changed, 2 insertions(+), 2 deletions(-)
13
14 diff --git a/pmstestsuite/library/standard/special_vars.py b/pmstestsuite/library/standard/special_vars.py
15 index 8c35f08..eab61dc 100644
16 --- a/pmstestsuite/library/standard/special_vars.py
17 +++ b/pmstestsuite/library/standard/special_vars.py
18 @@ -57,5 +57,5 @@ class DefinedPhasesTest(DBusEbuildTestCase):
19 if not DBusEbuildTestCase.check_dbus_result(self, output, pm):
20 return False
21
22 - phases = pm.installed[self.atom(pm)].metadata.DEFINED_PHASES.split()
23 - return (' '.join(phases) == 'setup')
24 + phases = pm.installed[self.atom(pm)].defined_phases
25 + return (str(phases) == 'setup')