2009-03-28 20:39:19 +00:00
|
|
|
--- a/libopkg/pkg_hash.c
|
|
|
|
+++ b/libopkg/pkg_hash.c
|
2009-08-06 20:08:27 +00:00
|
|
|
@@ -363,8 +363,11 @@ pkg_t *pkg_hash_fetch_best_installation_
|
2009-03-28 20:39:19 +00:00
|
|
|
abstract_pkg_t *apkg = NULL;
|
|
|
|
pkg_t *ret;
|
|
|
|
|
|
|
|
- if (!(apkg = abstract_pkg_fetch_by_name(hash, name)))
|
|
|
|
- return NULL;
|
|
|
|
+ if (!(apkg = abstract_pkg_fetch_by_name(hash, name))) {
|
|
|
|
+ if (err)
|
|
|
|
+ *err = 0;
|
|
|
|
+ return NULL;
|
|
|
|
+ }
|
|
|
|
|
|
|
|
ret = pkg_hash_fetch_best_installation_candidate(conf, apkg, pkg_name_constraint_fcn, apkg->name, 0, err);
|
|
|
|
|