|
|
|
@ -198,10 +198,20 @@ func cscSyncDebian(repo *config.Repo) []string { |
|
|
|
|
args = append(args, addConditionalFlags(repo, baseFlags|excludeTmp|ipv4)...) |
|
|
|
|
args = append(args, buildRsyncDaemonHost(repo)+"/pool/", buildDownloadDir(repo)+"/pool/") |
|
|
|
|
|
|
|
|
|
args = append(args, []string{ |
|
|
|
|
"&&", "nice", "rsync", "-rlHtvp", |
|
|
|
|
ch := spawnProcess(repo, args) |
|
|
|
|
if ch == nil { |
|
|
|
|
// spawnSyncProcess will have already logged error
|
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
cmd := <-ch |
|
|
|
|
if cmd.ProcessState.ExitCode() != 0 { |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
args = []string{ |
|
|
|
|
"nice", "rsync", "-rlHtvp", |
|
|
|
|
"--exclude", filepath.Join("project/trace", config.Conf.Hostname), |
|
|
|
|
}...) |
|
|
|
|
} |
|
|
|
|
args = append(args, addConditionalFlags(repo, baseFlags|excludeTmp|ipv4|delayUpdatesDeleteAfter)...) |
|
|
|
|
args = append(args, buildRsyncDaemonHost(repo), buildDownloadDir(repo)) |
|
|
|
|
|
|
|
|
|