xbps_find_new_packages(): do not treat missing packages in repo,
or packages with less than or equal version installed as errors. --HG-- extra : convert_revision : xtraeme%40gmail.com-20091016134654-14a5x7b6ra9a632s
This commit is contained in:
parent
e1f2a8b7bd
commit
a60fde85a5
@ -229,8 +229,10 @@ xbps_find_new_packages(void)
|
|||||||
while ((obj = prop_object_iterator_next(iter)) != NULL) {
|
while ((obj = prop_object_iterator_next(iter)) != NULL) {
|
||||||
prop_dictionary_get_cstring_nocopy(obj, "pkgname", &pkgname);
|
prop_dictionary_get_cstring_nocopy(obj, "pkgname", &pkgname);
|
||||||
rv = xbps_find_new_pkg(pkgname, obj);
|
rv = xbps_find_new_pkg(pkgname, obj);
|
||||||
if (rv == ENOENT || rv == EEXIST)
|
if (rv == ENOENT || rv == EEXIST) {
|
||||||
|
rv = 0;
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
else if (rv != 0) {
|
else if (rv != 0) {
|
||||||
prop_object_iterator_release(iter);
|
prop_object_iterator_release(iter);
|
||||||
return rv;
|
return rv;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user