When adding the checksums for the individual file entries in the generated
+CONTENTS file, if the entry is also the last in the package's list, adjust the tail pointer accordingly.
This commit is contained in:
parent
83dc57abd5
commit
8f6a8bb131
|
@ -1,11 +1,11 @@
|
||||||
/* $NetBSD: pl.c,v 1.20 2001/05/18 13:21:38 agc Exp $ */
|
/* $NetBSD: pl.c,v 1.21 2001/05/21 12:05:20 agc Exp $ */
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
#if 0
|
#if 0
|
||||||
static const char *rcsid = "from FreeBSD Id: pl.c,v 1.11 1997/10/08 07:46:35 charnier Exp";
|
static const char *rcsid = "from FreeBSD Id: pl.c,v 1.11 1997/10/08 07:46:35 charnier Exp";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: pl.c,v 1.20 2001/05/18 13:21:38 agc Exp $");
|
__RCSID("$NetBSD: pl.c,v 1.21 2001/05/21 12:05:20 agc Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -195,6 +195,9 @@ check_list(char *home, package_t *pkg, const char *PkgName)
|
||||||
tmp->type = PLIST_COMMENT; /* PLIST_MD5 - HF */
|
tmp->type = PLIST_COMMENT; /* PLIST_MD5 - HF */
|
||||||
tmp->next = p->next;
|
tmp->next = p->next;
|
||||||
tmp->prev = p;
|
tmp->prev = p;
|
||||||
|
if (p == pkg->tail) {
|
||||||
|
pkg->tail = tmp;
|
||||||
|
}
|
||||||
p->next = tmp;
|
p->next = tmp;
|
||||||
p = tmp;
|
p = tmp;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue