Skip to content

Commit

Permalink
Changed "sync" to "push" in messages
Browse files Browse the repository at this point in the history
"Push" describes the direction better than "sync".
  • Loading branch information
bulletmark committed Dec 1, 2024
1 parent afa7dfe commit 814dd1a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pacpush.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def rsync(src):
text=True, shell=True)

for line in res.stdout:
log(f'synced {line.strip()}')
log(f'pushed {line.strip()}')

if not args.no_machcheck:
res = subprocess.run(f'ssh{ssh_args} root@{host} uname -m',
Expand Down Expand Up @@ -209,7 +209,7 @@ def rsync(src):
else:
mirtxt = ''

log(f'syncing {MACH} package{mirtxt} lists ..')
log(f'pushing {MACH} package{mirtxt} lists ..')
rsync(arglist)

build_dirs = [Path(p) for p in args.aur_build_dir.split(';')] if \
Expand Down Expand Up @@ -266,12 +266,12 @@ def rsync(src):
log(f'{pkg} (not available)')

if filelist:
log('syncing updated packages ..', priority=True)
log('pushing updated packages ..', priority=True)
with tempfile.NamedTemporaryFile() as fp:
fp.writelines(bytes(line) + b'\n' for line in filelist)
fp.flush()
rsync(f'--files-from {fp.name} /')
log('finished syncing packages.', priority=True)
log('finished pushing packages.', priority=True)
elif name:
log('no packages available.', priority=True)
else:
Expand Down

0 comments on commit 814dd1a

Please sign in to comment.