diff options
-rw-r--r-- | gemato/profile.py | 3 | ||||
-rw-r--r-- | tests/test_profile.py | 15 |
2 files changed, 13 insertions, 5 deletions
diff --git a/gemato/profile.py b/gemato/profile.py index cf4d66c..8f6266c 100644 --- a/gemato/profile.py +++ b/gemato/profile.py @@ -107,6 +107,9 @@ class EbuildRepositoryProfile(DefaultProfile): if relpath == '': # traditionally present in /usr/portage return ('distfiles', 'local', 'packages') + elif relpath == 'metadata': + return ('timestamp', 'timestamp.chk', 'timestamp.commit', + 'timestamp.x') return () def set_loader_options(self, loader): diff --git a/tests/test_profile.py b/tests/test_profile.py index 0a7e4d9..bf4156f 100644 --- a/tests/test_profile.py +++ b/tests/test_profile.py @@ -67,10 +67,6 @@ class EbuildRepositoryTests(TempDirTestCase): 'metadata/layout.conf': 'DATA', 'metadata/projects.xml': 'DATA', 'metadata/pkg_desc_index': 'DATA', - 'metadata/timestamp': 'DATA', - 'metadata/timestamp.chk': 'DATA', - 'metadata/timestamp.commit': 'DATA', - 'metadata/timestamp.x': 'DATA', 'metadata/dtd/foo.dtd': 'DATA', 'metadata/glsa/glsa-202001-01.xml': 'DATA', 'metadata/install-qa-check.d/50foo': 'DATA', @@ -95,12 +91,21 @@ class EbuildRepositoryTests(TempDirTestCase): 'profiles/desc/foo.desc': 'DATA', 'profiles/updates/1Q-2020': 'DATA', } - FILES = dict.fromkeys(EXPECTED_TYPES, u'') + FILES = dict.fromkeys(list(EXPECTED_TYPES) + [ + 'metadata/timestamp', + 'metadata/timestamp.chk', + 'metadata/timestamp.commit', + 'metadata/timestamp.x', + ], u'') EXPECTED_IGNORE = [ 'distfiles', 'local', 'packages', + 'metadata/timestamp', + 'metadata/timestamp.chk', + 'metadata/timestamp.commit', + 'metadata/timestamp.x', ] def test_get_entry_type_for_path(self): |