summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2005-07-26 09:16:48 +0000
committerespie <espie@openbsd.org>2005-07-26 09:16:48 +0000
commit1ee5a13c64a0fe4e23aa65b00539af3097e77a49 (patch)
tree56d7a7e35bd6a8743a4533554e266316939c15e0
parentInstead of juggling around with cr4 and enabling parts of it sometimes, (diff)
downloadwireguard-openbsd-1ee5a13c64a0fe4e23aa65b00539af3097e77a49.tar.xz
wireguard-openbsd-1ee5a13c64a0fe4e23aa65b00539af3097e77a49.zip
switch .libs stubs package over to new COMMENT format.
Fix packing-list to be complete (it was missing the DESC special file)
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Update.pm15
1 files changed, 10 insertions, 5 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Update.pm b/usr.sbin/pkg_add/OpenBSD/Update.pm
index 5c75067c356..5ed22ee32c0 100644
--- a/usr.sbin/pkg_add/OpenBSD/Update.pm
+++ b/usr.sbin/pkg_add/OpenBSD/Update.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: Update.pm,v 1.51 2005/02/07 15:35:23 espie Exp $
+# $OpenBSD: Update.pm,v 1.52 2005/07/26 09:16:48 espie Exp $
#
# Copyright (c) 2004 Marc Espie <espie@openbsd.org>
#
@@ -428,12 +428,17 @@ sub save_old_libraries
$stub_list->to_cache();
$old_plist->to_cache();
} else {
+ require OpenBSD::md5;
+
mkdir($dest);
my $oldname = $old_plist->pkgname();
- open my $comment, '>', $dest.COMMENT;
- print $comment "Stub libraries for $oldname";
- close $comment;
- link($dest.COMMENT, $dest.DESC);
+ open my $descr, '>', $dest.DESC;
+ print $descr "Stub libraries for $oldname\n";
+ print $descr "Stub libraries for $oldname\n";
+ close $descr;
+ my $f = OpenBSD::PackingElement::FDESC->add($stub_list, DESC);
+ $f->{ignore} = 1;
+ $f->{md5} = OpenBSD::md5::fromfile($dest.DESC);
$stub_list->to_installation();
$old_plist->to_installation();
}