summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/Update.pm
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2005-07-26 09:16:49 +0000
committerMarc Espie <espie@cvs.openbsd.org>2005-07-26 09:16:49 +0000
commit5a9c3a8dfea1c875e3b68be33243acc63e39dbd4 (patch)
tree29abafbe31a0d75de2bfb025dd0158646dd612ba /usr.sbin/pkg_add/OpenBSD/Update.pm
parent4d3d8b7f092c26c8069ab97e7cb397fb6986881e (diff)
switch .libs stubs package over to new COMMENT format.
Fix packing-list to be complete (it was missing the DESC special file)
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/Update.pm')
-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();
}