summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2005-08-17 09:19:10 +0000
committerMarc Espie <espie@cvs.openbsd.org>2005-08-17 09:19:10 +0000
commitba1b6bcbd4fc9bea2680c8744a7c46af18f77b5a (patch)
treecac867e66c604412f87c19f4fafe37c931962df1 /usr.sbin/pkg_add
parent5fc2ae168c1b1129de69b2ca41800fa7fe049b16 (diff)
rename erase to more appropriate forget
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Delete.pm6
-rw-r--r--usr.sbin/pkg_add/OpenBSD/RequiredBy.pm4
2 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Delete.pm b/usr.sbin/pkg_add/OpenBSD/Delete.pm
index 6c798446ace..37080c30f0d 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.25 2005/08/16 17:27:40 espie Exp $
+# $OpenBSD: Delete.pm,v 1.26 2005/08/17 09:19:09 espie Exp $
#
# Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org>
#
@@ -138,8 +138,8 @@ sub remove_packing_info
for my $fname (info_names()) {
unlink($dir.$fname);
}
- OpenBSD::RequiredBy->erase($dir);
- OpenBSD::Requiring->erase($dir);
+ OpenBSD::RequiredBy->forget($dir);
+ OpenBSD::Requiring->forget($dir);
rmdir($dir) or Fatal "Can't finish removing directory $dir: $!";
}
diff --git a/usr.sbin/pkg_add/OpenBSD/RequiredBy.pm b/usr.sbin/pkg_add/OpenBSD/RequiredBy.pm
index 3c4c3b72d2c..cb915e9ac4d 100644
--- a/usr.sbin/pkg_add/OpenBSD/RequiredBy.pm
+++ b/usr.sbin/pkg_add/OpenBSD/RequiredBy.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: RequiredBy.pm,v 1.9 2004/12/21 18:12:06 espie Exp $
+# $OpenBSD: RequiredBy.pm,v 1.10 2005/08/17 09:19:09 espie Exp $
#
# Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org>
#
@@ -120,7 +120,7 @@ sub new
return $cache->{$f};
}
-sub erase
+sub forget
{
my ($class, $dir) = @_;
my $f = $dir.$class->filename();