summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2015-01-05 13:18:32 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2015-01-05 13:18:32 +0000
commitac8020e2a0c50178549c402235259841a88cacc0 (patch)
treeaa891729fad174c6e396b4e91667561df85c3559
parent9262bde92014625b9ae1fcc901512e05e752da1f (diff)
When building the package path for the new fw_update, only use
/firmware/snapshots/ for releases tagged with "-current", otherwise use the version number e.g. /firmware/5.7/ for 5.7-beta / 5.7.
-rw-r--r--usr.sbin/pkg_add/OpenBSD/FwUpdate.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/FwUpdate.pm b/usr.sbin/pkg_add/OpenBSD/FwUpdate.pm
index 9ee7fa4ccb3..c7a405b7315 100644
--- a/usr.sbin/pkg_add/OpenBSD/FwUpdate.pm
+++ b/usr.sbin/pkg_add/OpenBSD/FwUpdate.pm
@@ -1,7 +1,7 @@
#! /usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: FwUpdate.pm,v 1.6 2015/01/04 14:55:47 espie Exp $
+# $OpenBSD: FwUpdate.pm,v 1.7 2015/01/05 13:18:31 sthen Exp $
#
# Copyright (c) 2014 Marc Espie <espie@openbsd.org>
#
@@ -33,7 +33,7 @@ sub find_path
close($cmd);
if ($line =~ m/^OpenBSD (\d\.\d)(\S*)\s/) {
my ($version, $tag) = ($1, $2);
- if ($tag ne '-stable') {
+ if ($tag eq '-current') {
$version = 'snapshots';
}
$state->{path} = "http://firmware.openbsd.org/firmware/$version/";