diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-11-24 20:20:02 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-11-24 20:20:48 +0100 |
commit | cb30f42f7bc893cc674ad1a35b284d40c0f11ac6 (patch) | |
tree | 5df997cc8026a5d16691a1bd57ca606fe94e94c9 | |
parent | ee2d91256166ce9cecc8c0d651db77fabcd8b1ca (diff) | |
download | gemato-cb30f42f7bc893cc674ad1a35b284d40c0f11ac6.tar.gz |
Ignore lost+found in case repo was mounted on separate ext* filesystem
-rw-r--r-- | gemato/profile.py | 2 | ||||
-rw-r--r-- | tests/test_profile.py | 1 | ||||
-rwxr-xr-x | utils/gen_fast_metamanifest.py | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/gemato/profile.py b/gemato/profile.py index 8f6266c..3e1153c 100644 --- a/gemato/profile.py +++ b/gemato/profile.py @@ -106,7 +106,7 @@ class EbuildRepositoryProfile(DefaultProfile): def get_ignore_paths_for_new_manifest(self, relpath): if relpath == '': # traditionally present in /usr/portage - return ('distfiles', 'local', 'packages') + return ('distfiles', 'local', 'lost+found', 'packages') elif relpath == 'metadata': return ('timestamp', 'timestamp.chk', 'timestamp.commit', 'timestamp.x') diff --git a/tests/test_profile.py b/tests/test_profile.py index 5f56dd2..a7467b5 100644 --- a/tests/test_profile.py +++ b/tests/test_profile.py @@ -101,6 +101,7 @@ class EbuildRepositoryTests(TempDirTestCase): EXPECTED_IGNORE = [ 'distfiles', 'local', + 'lost+found', 'packages', 'metadata/timestamp', 'metadata/timestamp.chk', diff --git a/utils/gen_fast_metamanifest.py b/utils/gen_fast_metamanifest.py index a696d0d..9217a34 100755 --- a/utils/gen_fast_metamanifest.py +++ b/utils/gen_fast_metamanifest.py @@ -61,6 +61,7 @@ IGNORE timestamp.x with io.open('Manifest', 'wb') as f: f.write(b'''IGNORE distfiles IGNORE local +IGNORE lost+found IGNORE packages ''') |