Do not check signed checksum before sync

If somebody disables sign, he wants this
This commit is contained in:
Mikhail Gordeev 2019-09-09 20:43:35 +03:00
parent 9da7bee180
commit 1cf9fdc5c4

View File

@ -540,11 +540,8 @@ Dir::Etc::preferencesparts "/var/empty";
for branch in self.branches: for branch in self.branches:
remote = self.remote(branch) remote = self.remote(branch)
files = glob.glob(f'{self.images_dir}/{branch}/*') files = glob.glob(f'{self.images_dir}/{branch}/*')
if f'self.checksum_command.upper().asc' not in files: cmd = ['rsync', '-v'] + files + [remote]
self.error(f'No checksum signature in branch {branch}') self.call(cmd)
else:
cmd = ['rsync', '-v'] + files + [remote]
self.call(cmd)
self.kick() self.kick()