diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2000-04-26 15:25:30 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2000-04-26 15:25:30 +0000 |
commit | 6320a70255f58ef53cb0ea24ced14c32f0fdab57 (patch) | |
tree | 1061f0fc4dc77d39992fe1f1082d74766d3e646b | |
parent | 4a32bae6f8e2b7b33f2af3b37238998767bdb505 (diff) |
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.c | 8 |
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) { |