summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2000-04-26 15:25:29 +0000
committerespie <espie@openbsd.org>2000-04-26 15:25:29 +0000
commit3ae75a92281a73d7b60ee83b9ca11cba830f65b8 (patch)
treed399de502999a4e7e036b2a9da6a6be24250b070
parentRemove one of my completely incomprehensible debugging printf's. (diff)
downloadwireguard-openbsd-3ae75a92281a73d7b60ee83b9ca11cba830f65b8.tar.xz
wireguard-openbsd-3ae75a92281a73d7b60ee83b9ca11cba830f65b8.zip
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.
-rw-r--r--usr.sbin/pkg_install/create/pl.c8
1 files 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) {