镜像自地址
https://github.com/tuna/tunasync.git
已同步 2025-12-06 14:36:47 +00:00
return if n=0
这个提交包含在:
@@ -124,7 +124,7 @@ class TwoStageRsyncProvider(RsyncProvider):
|
||||
|
||||
def set_stage1_profile(self, profile):
|
||||
if profile not in self._stage1_profiles:
|
||||
raise Exception("Profile Undefined!")
|
||||
raise Exception("Profile Undefined: %s, %s" % (profile, self.name))
|
||||
|
||||
self._stage1_excludes = self._stage1_profiles[profile]
|
||||
|
||||
|
||||
@@ -235,7 +235,10 @@ class TUNASync(object):
|
||||
job_ctx = self.status_manager.get_info(mirror_name, "ctx")
|
||||
n = kwargs.get("n", 0)
|
||||
if n == 0:
|
||||
res = job_ctx.get("log_file", "/dev/null")
|
||||
res = job_ctx.get(
|
||||
"log_link",
|
||||
job_ctx.get("log_file", "/dev/null"),
|
||||
)
|
||||
else:
|
||||
import os
|
||||
log_file = job_ctx.get("log_file", None)
|
||||
|
||||
在新工单中引用
屏蔽一个用户