From: Kristian Høgsberg Date: Tue, 17 Jun 2008 02:35:09 +0000 (-0400) Subject: Don't fail to update if there is not older package found. X-Git-Tag: 0.1~127 X-Git-Url: http://project.juiblex.co.uk/git/?a=commitdiff_plain;h=fc8154dd5a5af9f2e61fe023c0946dc70ddab9c2;p=razor.git Don't fail to update if there is not older package found. --- diff --git a/librazor/razor.c b/librazor/razor.c index c5b986b..dffd755 100644 --- a/librazor/razor.c +++ b/librazor/razor.c @@ -2353,10 +2353,9 @@ flush_scheduled_upstream_updates(struct razor_transaction *trans) if (!(trans->upstream.packages[p - upkgs] & TRANS_PACKAGE_UPDATE)) continue; - if (!prop_iter_seek_to(&spi, RAZOR_PROPERTY_PROVIDES, name)) - continue; - remove_matching_providers(trans, &spi, - RAZOR_VERSION_LESS, version); + if (prop_iter_seek_to(&spi, RAZOR_PROPERTY_PROVIDES, name)) + remove_matching_providers(trans, &spi, + RAZOR_VERSION_LESS, version); razor_transaction_install_package(trans, p); fprintf(stderr, "installing %s-%s\n", name, version); } @@ -2368,6 +2367,7 @@ razor_transaction_resolve(struct razor_transaction *trans) int last = 0; flush_scheduled_system_updates(trans); + flush_scheduled_upstream_updates(trans); while (last < trans->changes) { last = trans->changes;