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 <scott.little@windriver.com>
This commit is contained in:
parent
7a5616741a
commit
eb971b6f7c
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user