download_mirror.sh fails when run without '-n'. It seems that some functions were relocated to utils.sh that require the 'SUDO' variable to be defined. Those common utilities are called from both download_mirror.sh and dl_rpms.sh. download_mirror.sh sets it correctly, but dl_rpms.sh does not. Instead dl_rpms.sh is setting 'SUDOCMD', which the utils.sh ignores. The result is that some yum commands are runs under sudo, while others are not. Eventually yumdownloader failes with ... Permission denied: '/var/lib/rpm/.dbenv.lock' The fix is to convert dl_rpms.sh to use SUDO rather than SUDOCMD. Closes-Bug: 1980684 Signed-off-by: Scott Little <scott.little@windriver.com> Change-Id: Ib4afdba0260e67f06997c360272f40f28fb11834
12 KiB
Executable File
12 KiB
Executable File