summaryrefslogtreecommitdiff
path: root/src/solvable.c
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2009-08-25 14:17:09 +0200
committerMichael Schroeder <mls@suse.de>2009-08-25 14:17:09 +0200
commit5a4f78bcf5dcbadad7ba6c42a6b74eb9c1005bdd (patch)
tree4339adf5b1f4ae96d62213ee78969ce2ef5d50d4 /src/solvable.c
parent2b6c95fe4d38b88774308e349a41dfe6d6a3dfa7 (diff)
downloadlibsolv-5a4f78bcf5dcbadad7ba6c42a6b74eb9c1005bdd.tar.gz
libsolv-5a4f78bcf5dcbadad7ba6c42a6b74eb9c1005bdd.tar.bz2
libsolv-5a4f78bcf5dcbadad7ba6c42a6b74eb9c1005bdd.zip
- add support for SOLVER_SOLVABLE_REPO, used by SOLVER_DISTUPGRADE
- fix vendorcheck in solvable_identical
Diffstat (limited to 'src/solvable.c')
-rw-r--r--src/solvable.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/solvable.c b/src/solvable.c
index 6f6f590..dfe8ce1 100644
--- a/src/solvable.c
+++ b/src/solvable.c
@@ -508,7 +508,8 @@ solvable_identical(Solvable *s1, Solvable *s2)
return 0;
if (s1->evr != s2->evr)
return 0;
- if (s1->vendor != s2->vendor)
+ /* map missing vendor to empty string */
+ if ((s1->vendor ? s1->vendor : 1) != (s2->vendor ? s2->vendor : 1))
return 0;
/* looking good, try some fancier stuff */