summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjung <jung@openbsd.org>2015-07-23 19:46:52 +0000
committerjung <jung@openbsd.org>2015-07-23 19:46:52 +0000
commitdf5108e6efc09d9b4b6150df16772b40370e4274 (patch)
tree757d2f8fd9bc28f77260ee0e625801ef2c710567
parentRevert attempted GPT code cleanup. Too much code, too little testing. (diff)
downloadwireguard-openbsd-df5108e6efc09d9b4b6150df16772b40370e4274.tar.xz
wireguard-openbsd-df5108e6efc09d9b4b6150df16772b40370e4274.zip
change the expansion of %m and %c in installpath during -beta to the
snapshots/ folder ok phessler@ sthen@
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Paths.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Paths.pm b/usr.sbin/pkg_add/OpenBSD/Paths.pm
index 83738d8d376..494dc0b78ad 100644
--- a/usr.sbin/pkg_add/OpenBSD/Paths.pm
+++ b/usr.sbin/pkg_add/OpenBSD/Paths.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: Paths.pm,v 1.32 2015/07/21 05:10:12 naddy Exp $
+# $OpenBSD: Paths.pm,v 1.33 2015/07/23 19:46:52 jung Exp $
#
# Copyright (c) 2007-2014 Marc Espie <espie@openbsd.org>
#
@@ -105,7 +105,7 @@ sub compute_osversion
close($cmd);
if ($line =~ m/^OpenBSD (\d\.\d)(\S*)\s/) {
$osversion = $1;
- if ($2 eq '-current') {
+ if ($2 eq '-current' or $2 eq '-beta') {
$osdirectory = 'snapshots';
} else {
$osdirectory = $osversion;