From 3ae75a92281a73d7b60ee83b9ca11cba830f65b8 Mon Sep 17 00:00:00 2001 From: espie Date: Wed, 26 Apr 2000 15:25:29 +0000 Subject: [PATCH] Needed feature: if @comment no checksum is inserted in a packing-list, then the next file will not have its MD5 checksum stored, and pkg_delete won't complain later if the file checksum changed. --- usr.sbin/pkg_install/create/pl.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/usr.sbin/pkg_install/create/pl.c b/usr.sbin/pkg_install/create/pl.c index 58d956717db..c9c58005643 100644 --- a/usr.sbin/pkg_install/create/pl.c +++ b/usr.sbin/pkg_install/create/pl.c @@ -1,7 +1,7 @@ -/* $OpenBSD: pl.c,v 1.5 1998/10/13 23:09:50 marc Exp $ */ +/* $OpenBSD: pl.c,v 1.6 2000/04/26 15:25:29 espie Exp $ */ #ifndef lint -static const char *rcsid = "$OpenBSD: pl.c,v 1.5 1998/10/13 23:09:50 marc Exp $"; +static const char *rcsid = "$OpenBSD: pl.c,v 1.6 2000/04/26 15:25:29 espie Exp $"; #endif /* @@ -53,6 +53,10 @@ check_list(char *home, package_t *pkg) case PLIST_SRC: there = p->name; break; + case PLIST_COMMENT: + if (strcmp(p->name, "no checksum") == 0) + p = p->next; + break; case PLIST_FILE: (void) snprintf(name, sizeof(name), "%s/%s", there ? there : cwd, p->name); if ((cp = MD5File(name, buf)) != NULL) { -- 2.20.1