util: Ignore paths starting with dot
Otherwise `/nix/store/.links` (`nix-store --optimise`) would be matched.
This commit is contained in:
parent
90320a0cbd
commit
9bc5a879a9
|
@ -31,6 +31,11 @@ pub async fn get_store_paths() -> Result<HashSet<PathBuf>> {
|
|||
if s.ends_with("-source") {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Special paths (so far only `.links`)
|
||||
if s.starts_with(".") {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
paths.insert(store_dir.join(file_name));
|
||||
|
|
Loading…
Reference in a new issue