aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs/populate/src/rsync.rs
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/populate/src/rsync.rs')
-rw-r--r--pkgs/populate/src/rsync.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/populate/src/rsync.rs b/pkgs/populate/src/rsync.rs
index 011c021..3a28c23 100644
--- a/pkgs/populate/src/rsync.rs
+++ b/pkgs/populate/src/rsync.rs
@@ -454,7 +454,13 @@ fn canonical_listed(line: &str) -> Option<String> {
/// size, modification time in seconds since the epoch, path relative to
/// where find started, empty for that, and symlink target, or None, like
/// canonical_listed.
-fn canonical_found(mode: &str, size: &str, time: &str, path: &str, target: &str) -> Option<String> {
+pub fn canonical_found(
+ mode: &str,
+ size: &str,
+ time: &str,
+ path: &str,
+ target: &str,
+) -> Option<String> {
let path = if path.is_empty() { "." } else { path };
if mode.len() != 10 || incomparable(path) || incomparable(target) {
return None;
@@ -535,7 +541,7 @@ pub fn found(output: &str) -> BTreeMap<String, Option<Listing>> {
}
/// The listing of source on the deploying machine, with find, as
-/// sh::LISTINGS prints it for the target, or None.
+/// sh::LISTINGS prints it, as the probe does for the target, or None.
fn found_locally(source: &str) -> Option<Listing> {
let output = run::output(
Command::new(run::SH)
[cgit] Unable to lock slot /tmp/cgit/21000000.lock: Permission denied (13)