From: sthen Date: Mon, 5 Jan 2015 13:18:31 +0000 (+0000) Subject: When building the package path for the new fw_update, only use X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=93a14fba9912203623640f798dd98464df161d4e;p=openbsd 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. --- 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/";