From ac8020e2a0c50178549c402235259841a88cacc0 Mon Sep 17 00:00:00 2001 From: Stuart Henderson Date: Mon, 5 Jan 2015 13:18:32 +0000 Subject: 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. --- usr.sbin/pkg_add/OpenBSD/FwUpdate.pm | 4 ++-- 1 file 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 # @@ -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/"; -- cgit v1.2.3