From e73391ef40d6a582b0b3c3008f69bb76c38ff5c9 Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Thu, 14 Dec 2023 16:49:02 -0500 Subject: [PATCH] importer: Allow `/usr/local` RPM content Obviously, this alone is not enough to expose that content but it's a start. Currently as is, it'll get nuked when we replace `/usr/local` by a symlink in postprocessing. A future patch will address that part. Part of https://github.com/coreos/rpm-ostree/issues/233. --- rust/src/importer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/src/importer.rs b/rust/src/importer.rs index c5ec4cb896..e2bb7bf16c 100644 --- a/rust/src/importer.rs +++ b/rust/src/importer.rs @@ -392,7 +392,7 @@ fn path_is_ostree_compliant(path: &str) -> bool { return true; } - if path.starts_with("/usr/") && !path.starts_with("/usr/local") { + if path.starts_with("/usr/") { return true; }