- 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:
jbj 2002-09-03 12:23:51 +00:00
parent cc5d229b0e
commit f19f373a59
5 changed files with 13 additions and 14 deletions

View File

@ -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).

View File

@ -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 *

View File

@ -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:

View File

@ -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 {

View File

@ -14,3 +14,5 @@ rpminject
rpmlead
rpmsort
rpmsignature
striptofile
unstripfile