From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/pms-test-suite:master commit in: PMSTestSuite/repository/
Date: Wed, 1 Jun 2011 12:30:16 +0000 (UTC) [thread overview]
Message-ID: <b3f88f042fedb4e5be9c8eabe78bd55fc42e3ac2.mgorny@gentoo> (raw)
commit: b3f88f042fedb4e5be9c8eabe78bd55fc42e3ac2
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 1 12:07:08 2011 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jun 1 12:07:08 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=b3f88f04
Support updating the category list.
---
PMSTestSuite/repository/__init__.py | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/PMSTestSuite/repository/__init__.py b/PMSTestSuite/repository/__init__.py
index 476f84f..70f3727 100644
--- a/PMSTestSuite/repository/__init__.py
+++ b/PMSTestSuite/repository/__init__.py
@@ -87,3 +87,11 @@ class NewEbuildRepository(EbuildRepository):
f.close()
EbuildRepository.__init__(self, path)
+
+ def add_category(self, catname):
+ self.categories.append(catname)
+ newcats = '\n'.join(self.categories)
+ files = {
+ os.path.join('profiles', 'categories'): newcats
+ }
+ self.write_files(files)
next reply other threads:[~2011-06-01 12:31 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-01 12:30 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-01-03 18:59 [gentoo-commits] proj/pms-test-suite:master commit in: pmstestsuite/repository/ Michał Górny
2011-06-23 21:14 [gentoo-commits] proj/pms-test-suite:master commit in: PMSTestSuite/repository/ Michał Górny
2011-06-14 12:35 Michał Górny
2011-06-07 15:20 Michał Górny
2011-06-03 5:54 Michał Górny
2011-06-03 5:54 Michał Górny
2011-06-01 12:30 Michał Górny
2011-06-01 12:30 Michał Górny
2011-06-01 12:30 Michał Górny
2011-06-01 12:30 Michał Górny
2011-06-01 12:30 Michał Górny
2011-06-01 12:30 Michał Górny
2011-06-01 12:30 Michał Górny
2011-05-24 14:28 Michał Górny
2011-05-24 8:11 Michał Górny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b3f88f042fedb4e5be9c8eabe78bd55fc42e3ac2.mgorny@gentoo \
--to=mgorny@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox