]> git.pld-linux.org Git - packages/rpm.git/blob - rpm-cache.patch
- ugly gcc hack not needed.
[packages/rpm.git] / rpm-cache.patch
1 diff -ur rpm-4.0-/lib/depends.c rpm-4.0/lib/depends.c
2 --- rpm-4.0-/lib/depends.c      Sun Jan 28 22:08:47 2001
3 +++ rpm-4.0/lib/depends.c       Sun Jan 28 22:10:40 2001
4 @@ -899,8 +899,10 @@
5  
6      /*
7       * Check if dbiOpen/dbiPut failed (e.g. permissions), we can't cache.
8 +     *
9 +     * We can't relay on cache when we need sugesstions.
10       */
11 -    if (_cacheDependsRC) {
12 +    if (_cacheDependsRC && suggestion == NULL) {
13         dbiIndex dbi;
14         dbi = dbiOpen(rpmdep->rpmdb, RPMDBI_DEPENDS, 0);
15         if (dbi == NULL)
This page took 0.025367 seconds and 3 git commands to generate.