You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
471 B
17 lines
471 B
16 years ago
|
--- a/libopkg/pkg_hash.c
|
||
|
+++ b/libopkg/pkg_hash.c
|
||
|
@@ -367,8 +367,11 @@ pkg_t *pkg_hash_fetch_best_installation_
|
||
|
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);
|
||
|
|