summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2007-05-30 12:30:16 +0000
committerMarc Espie <espie@cvs.openbsd.org>2007-05-30 12:30:16 +0000
commit3bf3f690338f9b5770df4adb44e2eb4a0381f120 (patch)
tree40d9d9e43188ad5236c0d777de0f1cc55bc7c868
parenta6f013d370040f6f35d1afad4ad1240ca74af53e (diff)
don't bother not copying the pkgname, we're going to overwrite it anyways.
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Delete.pm9
1 files changed, 2 insertions, 7 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Delete.pm b/usr.sbin/pkg_add/OpenBSD/Delete.pm
index 9726ea0c8b2..fa919e3cb7a 100644
--- a/usr.sbin/pkg_add/OpenBSD/Delete.pm
+++ b/usr.sbin/pkg_add/OpenBSD/Delete.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: Delete.pm,v 1.51 2007/05/30 11:13:04 espie Exp $
+# $OpenBSD: Delete.pm,v 1.52 2007/05/30 12:30:15 espie Exp $
#
# Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org>
#
@@ -50,7 +50,7 @@ sub keep_old_files
my ($state, $plist) = @_;
my $p = new OpenBSD::PackingList;
my $borked = borked_package($plist->pkgname);
- OpenBSD::PackingElement::Name->add($p, $borked);
+ $p->set_pkgname($borked);
$p->set_infodir(installed_info($borked));
mkdir($p->infodir);
@@ -454,11 +454,6 @@ sub copy_old_stuff
$self->add_object($plist);
}
-package OpenBSD::PackingElement::Name;
-sub copy_old_stuff
-{
-}
-
package OpenBSD::PackingElement::FDESC;
sub copy_old_stuff
{