summaryrefslogtreecommitdiff
path: root/librazor
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2008-06-16 22:35:09 -0400
committerKristian Høgsberg <krh@redhat.com>2008-06-16 22:35:09 -0400
commitfc8154dd5a5af9f2e61fe023c0946dc70ddab9c2 (patch)
tree671f95d4c7af8d09935a012e5027de9b0a0e10e4 /librazor
parent8d9c75f44ae1640f84dacc9410e081e3f4e9327e (diff)
Don't fail to update if there is not older package found.
Diffstat (limited to 'librazor')
-rw-r--r--librazor/razor.c8
1 files changed, 4 insertions, 4 deletions
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;