diff options
author | 2007-04-15 17:42:29 +0000 | |
---|---|---|
committer | 2007-04-15 17:42:29 +0000 | |
commit | 671495b231efd05a3d56a9cc9bf5bdfa0f8aa945 (patch) | |
tree | 6422970fa98cdf967506fa78a134a793118b6e1a | |
parent | Give this code a chance to work on platforms where the page size isn't 8k. (diff) | |
download | wireguard-openbsd-671495b231efd05a3d56a9cc9bf5bdfa0f8aa945.tar.xz wireguard-openbsd-671495b231efd05a3d56a9cc9bf5bdfa0f8aa945.zip |
very minor cleanup
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Interactive.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Interactive.pm b/usr.sbin/pkg_add/OpenBSD/Interactive.pm index ee7aaa2b17f..64d2f7867b3 100644 --- a/usr.sbin/pkg_add/OpenBSD/Interactive.pm +++ b/usr.sbin/pkg_add/OpenBSD/Interactive.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Interactive.pm,v 1.7 2007/04/15 10:17:29 espie Exp $ +# $OpenBSD: Interactive.pm,v 1.8 2007/04/15 17:42:29 espie Exp $ # # Copyright (c) 2005-2007 Marc Espie <espie@openbsd.org> # @@ -79,7 +79,7 @@ LOOP2: return $default; } chomp $result; - $result =~ s/\s*//g; + $result =~ s/\s+//g; $result =~ tr/A-Z/a-z/; if ($result eq 'yes' or $result eq 'y') { return 1; @@ -107,7 +107,7 @@ sub choose1 return $l[0]; } elsif (@l != 0) { if ($interactive) { - my $result = OpenBSD::Interactive::ask_list("Ambiguous: choose package for $pkgname", 1, ("<None>", @l)); + my $result = ask_list("Ambiguous: choose package for $pkgname", 1, ("<None>", @l)); if ($result ne '<None>') { return $result; } |