Age | Commit message (Collapse) | Author |
|
Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
|
Fix load_unregistered_manifests() not to crash on 'Manifest*' files
that do not contain valid compressed data. Instead, treat them
as unknown files, similarly how Manifests with invalid data are handled.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
|
Flush the file after writing to ensure that .buffer.tell() gives
non-zero value. This fixes a number of cases of Manifests not being
compressed. It also pointed out a major mistake in profile tests.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
|
Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
|
|
|
Skip cross-fs tests if /proc is not a mountpoint. This handles cases
when /proc exists but is not mounted which is quite normal
e.g. on Gentoo/FreeBSD.
|
|
|
|
|
|
Check for cross-device directory when starting to process the directory
rather than for each subdirectory to be processed. This will avoid
double stat() call in the future. It also means that cross-device
exceptions are raised a little later, when recurring into the directory
rather than before doing that. However, the starting directory is now
also tested.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Top-level Manifest compression is now forbidden by the specification for
security reasons. Therefore, modify the algorithm in the default profile
to prevent that.
A compressed top-level Manifest can still be created explicitly
via the API, or using a custom profile.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|