mirror of
https://github.com/storytold/craft-launcher.git
synced 2026-11-07 02:41:53 +00:00
install(freebsd): record non-traversed symlink entries in tree manifest
This commit is contained in:
1 file changed
+2
-2
@@ -1518,7 +1518,7 @@ mod tree {
|
||||
let p = entry.path();
|
||||
if ft.is_dir() && !ft.is_symlink() {
|
||||
stack.push(p);
|
||||
} else if !ft.is_symlink() {
|
||||
} else {
|
||||
let rel = p.strip_prefix(root).map_err(|e| e.to_string())?;
|
||||
out.push(rel.to_path_buf());
|
||||
}
|
||||
@@ -2137,7 +2137,7 @@ mod tests {
|
||||
std::os::unix::fs::symlink(&external, root.join("link_to_external")).unwrap();
|
||||
|
||||
let list = tree::files(&root).unwrap();
|
||||
assert_eq!(list, vec![PathBuf::from("regular.txt")]);
|
||||
assert_eq!(list, vec![PathBuf::from("link_to_external"), PathBuf::from("regular.txt")]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in new issue
Block a user