- fix: always do rpmalMakeIndex.
- fix: resurrect --triggers (#73330). - python: typo in NOKEY exception string. CVS patchset: 5696 CVS date: 2002/09/03 12:23:51
This commit is contained in:
parent
cc5d229b0e
commit
f19f373a59
3
CHANGES
3
CHANGES
|
@ -284,6 +284,9 @@
|
|||
- fix: don't exit with open cursor, there be a stale lock.
|
||||
- fix: check for signal induced exit more often (#73193).
|
||||
- reinterpret the _unsafe_rollbacks macro as earliest rollback.
|
||||
- fix: always do rpmalMakeIndex.
|
||||
- fix: resurrect --triggers (#73330).
|
||||
- python: typo in NOKEY exception string.
|
||||
|
||||
4.0.3 -> 4.0.4:
|
||||
- solaris: translate i86pc to i386 (#57182).
|
||||
|
|
18
lib/rpmal.c
18
lib/rpmal.c
|
@ -587,30 +587,26 @@ void rpmalMakeIndex(rpmal al)
|
|||
{
|
||||
availableIndex ai;
|
||||
availablePackage alp;
|
||||
int aisize;
|
||||
int i;
|
||||
|
||||
if (al == NULL || al->list == NULL) return;
|
||||
ai = &al->index;
|
||||
aisize = ai->size;
|
||||
|
||||
ai->size = 0;
|
||||
for (i = 0; i < al->size; i++) {
|
||||
alp = al->list + i;
|
||||
if (alp->provides != NULL)
|
||||
ai->size += rpmdsCount(alp->provides);
|
||||
}
|
||||
|
||||
if (ai->size != aisize) {
|
||||
ai->index = xrealloc(ai->index, ai->size * sizeof(*ai->index));
|
||||
ai->k = 0;
|
||||
ai->index = xrealloc(ai->index, ai->size * sizeof(*ai->index));
|
||||
ai->k = 0;
|
||||
|
||||
for (i = 0; i < al->size; i++) {
|
||||
alp = al->list + i;
|
||||
rpmalAddProvides(al, (alKey)i, alp->provides);
|
||||
}
|
||||
|
||||
qsort(ai->index, ai->size, sizeof(*ai->index), indexcmp);
|
||||
for (i = 0; i < al->size; i++) {
|
||||
alp = al->list + i;
|
||||
rpmalAddProvides(al, (alKey)i, alp->provides);
|
||||
}
|
||||
qsort(ai->index, ai->size, sizeof(*ai->index), indexcmp);
|
||||
}
|
||||
|
||||
fnpyKey *
|
||||
|
|
|
@ -749,7 +749,7 @@ fprintf(stderr, "*** rpmts_HdrFromFdno(%p) ts %p rc %d\n", s, s->ts, rpmrc);
|
|||
break;
|
||||
|
||||
case RPMRC_NOKEY:
|
||||
PyErr_SetString(pyrpmError, "public key not availaiable");
|
||||
PyErr_SetString(pyrpmError, "public key not available");
|
||||
break;
|
||||
|
||||
case RPMRC_NOTTRUSTED:
|
||||
|
|
|
@ -2678,8 +2678,6 @@ static char * formatValue(sprintfTag tag, Header h,
|
|||
count = 1;
|
||||
type = RPM_STRING_TYPE;
|
||||
data = "(none)";
|
||||
} else {
|
||||
datafree = extCache[tag->extNum].freeit;
|
||||
}
|
||||
/*@=boundswrite@*/
|
||||
} else {
|
||||
|
|
|
@ -14,3 +14,5 @@ rpminject
|
|||
rpmlead
|
||||
rpmsort
|
||||
rpmsignature
|
||||
striptofile
|
||||
unstripfile
|
||||
|
|
Loading…
Reference in New Issue