bb6f78deca
This is consistent with the other printf statements in the file. This keeps the sorted data with the newlines as they are, and avoids breaking down the data again. Otherwise, the sorting order can be altered which breaks comm comparison and causes the "Run yum_update.sh" task to fail with the following error: "stderr_lines": [ "comm: file 2 is not in sorted order", "error while running runtime: exit status 1" ], This is particularly important for the $available variable which contains the repoquery output, often very large and with unusual characters. The error happens consistently when including RHEL 7 server repos or RHEL 8 BaseOS repo and prevents the update from working at all. This patch also adds -u when sorting the $available output. Once the versions are removed with cut, there can be a tremendous amount of duplication in the data obtained from repoquery. That makes verbose mode even more difficult to navigate when debugging. Change-Id: Id64a8c2e395de28945d5d6b4370c44b80392e543 |
||
---|---|---|
.. | ||
Dockerfile-dev.j2 | ||
Dockerfile-rpm.j2 | ||
Dockerfile-yum-install.j2 | ||
Dockerfile-yum.j2 | ||
yum_update.sh.j2 |