From 701450205655eae0eb2e7f75b3a3da1394cc557a Mon Sep 17 00:00:00 2001 From: Scott Little Date: Fri, 30 Nov 2018 12:08:47 -0500 Subject: [PATCH] failed to pass extra_args Problem: download_mirror -n should never use sudo. A recent download attempt failed using L1 match criteria, and progressed to the backup K1 match criteria. Then it did so, the following error is seen.... start 2nd round of downloading Binary RPMs with K1 match criteria... using logs/L1_rpms_missing_centos.log as the download name lists 2018-11-29_1331 sudo: no tty present and no askpass program specified Solution: Pass ${rpm_downloader_extra_args} to $rpm_downloader under the '2nd round of downloading' branch Closes-Bug: 1806094 Change-Id: I832d1b0af7e600e5fa635d9e3c317a9caa303f88 Signed-off-by: Scott Little --- centos-mirror-tools/download_mirror.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centos-mirror-tools/download_mirror.sh b/centos-mirror-tools/download_mirror.sh index 6d92f864..6dc6bacb 100755 --- a/centos-mirror-tools/download_mirror.sh +++ b/centos-mirror-tools/download_mirror.sh @@ -301,7 +301,7 @@ elif [ $retcode -eq 1 ]; then if [ -e "$LOGSDIR/L1_rpms_missing_centos.log" ]; then echo "start 2nd round of downloading Binary RPMs with K1 match criteria..." - $rpm_downloader $LOGSDIR/L1_rpms_missing_centos.log K1 centos |& tee $K1_logfile + $rpm_downloader ${rpm_downloader_extra_args} $LOGSDIR/L1_rpms_missing_centos.log K1 centos |& tee $K1_logfile retcode=${PIPESTATUS[0]} if [ $retcode -eq 0 ]; then echo "finish 2nd round of RPM downloading successfully!"