From eb971b6f7c8321064b3ca334e21f0609ffb70efe Mon Sep 17 00:00:00 2001 From: Scott Little Date: Thu, 7 May 2020 19:12:03 -0400 Subject: [PATCH] Fix potential infinite loop in build-iso Function generate_dep_list is creating a DEPLISTFILE with a lot of unwanted 'installing package xxx' messages when it should only contain a list of unresolved dependencies. On the next iteration we waste a lot of time trying to install nonexistant packages 'installing' and 'packages', and re-installing packages we already have. Instead of converging on an empty DEPLISTFILE, we converge on a DEPLISTFILE that just reiterates the same list of 'installing package' if we are lucky, which we usually are, but not always. Closes-Bug: 1877483 Change-Id: I971725558eb628c6d6b5d0b42d0bcab6b46e722b Signed-off-by: Scott Little --- build-tools/build_iso/cgts_deps.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build-tools/build_iso/cgts_deps.sh b/build-tools/build_iso/cgts_deps.sh index 797c7cef..e1ccbf96 100755 --- a/build-tools/build_iso/cgts_deps.sh +++ b/build-tools/build_iso/cgts_deps.sh @@ -36,6 +36,7 @@ function generate_dep_list { | grep -v "error:" \ | grep -v "warning:" \ | grep -v "Preparing..." \ + | grep -v "installing package" \ | sed "s/ is needed by.*$//" | sed "s/ >=.*$//" | sort -u > $DEPLISTFILE \rm -rf $TMP_RPM_DB }