Don't fail to update if there is not older package found.
authorKristian H?gsberg <krh@redhat.com>
Mon Jun 16 22:35:09 2008 -0400 (2008-06-16)
changeset 244708a3d9c759a
parent 243 f37f5f4a2403
child 245 0311b3fe72e3
Don't fail to update if there is not older package found.
librazor/razor.c
     1.1 --- a/librazor/razor.c	Mon Jun 16 22:32:39 2008 -0400
     1.2 +++ b/librazor/razor.c	Mon Jun 16 22:35:09 2008 -0400
     1.3 @@ -2353,10 +2353,9 @@
     1.4  		if (!(trans->upstream.packages[p - upkgs] & TRANS_PACKAGE_UPDATE))
     1.5  			continue;
     1.6  
     1.7 -		if (!prop_iter_seek_to(&spi, RAZOR_PROPERTY_PROVIDES, name))
     1.8 -			continue;
     1.9 -		remove_matching_providers(trans, &spi,
    1.10 -					  RAZOR_VERSION_LESS, version);
    1.11 +		if (prop_iter_seek_to(&spi, RAZOR_PROPERTY_PROVIDES, name))
    1.12 +			remove_matching_providers(trans, &spi,
    1.13 +						  RAZOR_VERSION_LESS, version);
    1.14  		razor_transaction_install_package(trans, p);
    1.15  		fprintf(stderr, "installing %s-%s\n", name, version);
    1.16  	}
    1.17 @@ -2368,6 +2367,7 @@
    1.18  	int last = 0;
    1.19  
    1.20  	flush_scheduled_system_updates(trans);
    1.21 +	flush_scheduled_upstream_updates(trans);
    1.22  
    1.23  	while (last < trans->changes) {
    1.24  		last = trans->changes;