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:30:51
Message-Id: af143461b0193808e97e4549128b4f7a0771b83b.mgorny@gentoo
1 commit: af143461b0193808e97e4549128b4f7a0771b83b
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 1 12:28:25 2011 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 1 12:28:25 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=af143461
7
8 Don't try to re-Manifest eclass/profiles.
9
10 ---
11 PMSTestSuite/repository/__init__.py | 6 +++++-
12 1 files changed, 5 insertions(+), 1 deletions(-)
13
14 diff --git a/PMSTestSuite/repository/__init__.py b/PMSTestSuite/repository/__init__.py
15 index 6545035..9e6060f 100644
16 --- a/PMSTestSuite/repository/__init__.py
17 +++ b/PMSTestSuite/repository/__init__.py
18 @@ -65,7 +65,11 @@ class EbuildRepository(object):
19
20 def remanifest(self, files, pm):
21 """ Remanifest files from <files> dict using <pm>. """
22 - dirs = frozenset([os.path.join(self.path, os.path.dirname(f)) for f in files])
23 + dirs = set()
24 + for fn in files:
25 + cat = self.get_category_from_path(fn)
26 + if cat:
27 + dirs.add(os.path.join(self.path, os.path.dirname(fn)))
28 pm.remanifest(dirs)
29
30 def add_category(self, catname, files):