# Fallback for downloading .po files (if rsync fails).
po_download_command_format2=\
-"wget --mirror -nd -q -np -A.po -P '%s' \
+"wget --mirror --level=1 -nd -q -A.po -P '%s' \
https://translationproject.org/latest/%s/"
# Prefer a non-empty tarname (4th argument of AC_INIT if given), else
rsync --delete --include "*.po" --exclude "*" -Lrtz "${TP_RSYNC_URI}gnulib/" . && return
fi
- wget --no-verbose --mirror -nd -np -A.po -P . "${TP_URL}gnulib/"
+ wget --no-verbose --mirror --level=1 -nd -A.po -P . "${TP_URL}gnulib/"
}
)
else
args = ['rsync', '--include', '*.po', '--exclude', '*', '-Lrtz', '%sgnulib/' % TP_RSYNC_URI, '.']
result = sp.call(args, shell=True)
if result != 0: # use wget
- args = ['wget', '--no-verbose', '--mirror', '-nd', '-np', '-A.po', '-P', '.',
+ args = ['wget', '--no-verbose', '--mirror', '--level=1', '-nd', '-A.po', '-P', '.',
'%sgnulib/' % TP_URL]
sp.call(args, shell=True)
else: # if self.config['dryrun']