lorax/src
Brian C. Lane c9582a0468 Create a new YumBase object when repodata changes
The problem this solves is that yum really isn't designed to be part of\
a long running daemon. So when repodata changes upstream, even when
you force it to download the new metadata, it doesn't change in memory
so you end up with lorax-composer depsolving against old versions, and
anaconda depsolving against new versions (because it sets up its own
YumBase and cache) and then the kickstart is no longer valid.

To solve this I have
 - Added a 6h timeout to the metadata check (because yum's doesn't work
   in this situation).
 - Added a metadata check to the YumLock .lock property, but only when
   the timeout expires.
 - Added a new .lock_check property to YumLock that always checks the
   metadata and resets the timeout.

If it has changed it does its best to tear down the existing YumBase,
deleting as much as it can in hopes it doesn't leak memory. And then it
sets up a totally new YumBase with the new repodata.

Resolves: rhbz#1632962
2018-10-01 13:37:44 -07:00
..
bin composer-cli should not log to a file by default 2018-08-21 11:30:22 -07:00
composer Fix composer-cli blueprints changes to get correct total 2018-08-23 16:21:54 -07:00
pylorax Create a new YumBase object when repodata changes 2018-10-01 13:37:44 -07:00
sbin Create a new YumBase object when repodata changes 2018-10-01 13:37:44 -07:00