Fix yum-cron exit conditions #9

merged 2 commits into from Mar 17, 2016


None yet
4 participants

dmnks commented Mar 16, 2016

No description provided.

andreasf and others added some commits Mar 16, 2016

yum-cron: don't fail on empty transaction. BZ 1004853
Even if refreshUpdates() returns True, the transaction may still be
empty if some updateinfo filters were applied there and thus a later
call to buildTransaction() would return 0 (success).  This wasn't
handled by findDeps() properly, making it emit an error message in such
a case.

Note that, in the first place, we shouldn't return True from
refreshUpdates() if the transaction becomes empty after applying the
filters.  However, we should handle this particular buildTransaction()
outcome in findDeps() regardless and that's sufficient to fix this bug.

See also:

megaumi added a commit that referenced this pull request Mar 17, 2016

Merge pull request #9 from dmnks/bz1004853
Fix yum-cron exit conditions

@megaumi megaumi merged commit 0c7e89e into rpm-software-management:master Mar 17, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment