summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2007-04-15 17:42:30 +0000
committerMarc Espie <espie@cvs.openbsd.org>2007-04-15 17:42:30 +0000
commit453a2d2072a61d4fbb1639b5a72c18cd2bd9ce33 (patch)
treeacd6292e2e843ec95b0ddd43b1b98de84160efc0 /usr.sbin/pkg_add
parent0190273c5fcf50acd5dd57162f031143f387039f (diff)
very minor cleanup
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Interactive.pm6
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;
}