diff options
| author | Michał Górny <mgorny@gentoo.org> | 2017-11-24 21:13:34 +0100 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2017-11-24 21:13:34 +0100 |
| commit | 89b80532c081fb177e050a80b78c5dd9632df112 (patch) | |
| tree | c0fdcc66b385a5ed9ebcac68f5ed4917a66bcfd9 | |
| parent | c859f53acfd137df1d388a50b467e2a68f077d48 (diff) | |
| download | gemato-89b80532c081fb177e050a80b78c5dd9632df112.tar.gz | |
Ignore timestamps in metadata subrepos
| -rw-r--r-- | gemato/profile.py | 5 | ||||
| -rw-r--r-- | tests/test_profile.py | 8 | ||||
| -rwxr-xr-x | utils/gen_fast_metamanifest.py | 9 |
3 files changed, 21 insertions, 1 deletions
diff --git a/gemato/profile.py b/gemato/profile.py index 3e1153c..9fca716 100644 --- a/gemato/profile.py +++ b/gemato/profile.py @@ -109,7 +109,10 @@ class EbuildRepositoryProfile(DefaultProfile): return ('distfiles', 'local', 'lost+found', 'packages') elif relpath == 'metadata': return ('timestamp', 'timestamp.chk', 'timestamp.commit', - 'timestamp.x') + 'timestamp.x', 'dtd/timestamp', 'dtd/timestamp.chk', + 'xml-schema/timestamp', 'xml-schema/timestamp.chk') + elif relpath in ('metadata/glsa', 'metadata/news'): + return ('timestamp', 'timestamp.chk') return () def set_loader_options(self, loader): diff --git a/tests/test_profile.py b/tests/test_profile.py index a7467b5..8848323 100644 --- a/tests/test_profile.py +++ b/tests/test_profile.py @@ -107,6 +107,14 @@ class EbuildRepositoryTests(TempDirTestCase): 'metadata/timestamp.chk', 'metadata/timestamp.commit', 'metadata/timestamp.x', + 'metadata/dtd/timestamp', + 'metadata/dtd/timestamp.chk', + 'metadata/glsa/timestamp', + 'metadata/glsa/timestamp.chk', + 'metadata/news/timestamp', + 'metadata/news/timestamp.chk', + 'metadata/xml-schema/timestamp', + 'metadata/xml-schema/timestamp.chk', ] def test_get_entry_type_for_path(self): diff --git a/utils/gen_fast_metamanifest.py b/utils/gen_fast_metamanifest.py index 9217a34..58596ae 100755 --- a/utils/gen_fast_metamanifest.py +++ b/utils/gen_fast_metamanifest.py @@ -57,6 +57,15 @@ def gen_metamanifest(top_dir): IGNORE timestamp.chk IGNORE timestamp.commit IGNORE timestamp.x +IGNORE dtd/timestamp +IGNORE dtd/timestamp.chk +IGNORE xml-schema/timestamp +IGNORE xml-schema/timestamp.chk +''') + for mdir in ('glsa', 'news'): + with io.open(os.path.join('metadata', mdir, 'Manifest'), 'wb') as f: + f.write(b'''IGNORE timestamp + IGNORE timestamp.chk ''') with io.open('Manifest', 'wb') as f: f.write(b'''IGNORE distfiles |
