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/repository/
Date: Wed, 01 Jun 2011 12:31:05
Message-Id: b3f88f042fedb4e5be9c8eabe78bd55fc42e3ac2.mgorny@gentoo
1 commit: b3f88f042fedb4e5be9c8eabe78bd55fc42e3ac2
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 1 12:07:08 2011 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 1 12:07:08 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=b3f88f04
7
8 Support updating the category list.
9
10 ---
11 PMSTestSuite/repository/__init__.py | 8 ++++++++
12 1 files changed, 8 insertions(+), 0 deletions(-)
13
14 diff --git a/PMSTestSuite/repository/__init__.py b/PMSTestSuite/repository/__init__.py
15 index 476f84f..70f3727 100644
16 --- a/PMSTestSuite/repository/__init__.py
17 +++ b/PMSTestSuite/repository/__init__.py
18 @@ -87,3 +87,11 @@ class NewEbuildRepository(EbuildRepository):
19 f.close()
20
21 EbuildRepository.__init__(self, path)
22 +
23 + def add_category(self, catname):
24 + self.categories.append(catname)
25 + newcats = '\n'.join(self.categories)
26 + files = {
27 + os.path.join('profiles', 'categories'): newcats
28 + }
29 + self.write_files(files)