From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH] pakfire: Re-install previous core update when in testing mode Date: Mon, 24 Feb 2020 18:51:24 +0000 Message-ID: <20200224185124.16170-1-michael.tremer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4177571079503990664==" List-Id: --===============4177571079503990664== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Arne Fitzenreiter Fixes: #12302 Signed-off-by: Arne Fitzenreiter Tested-by: Michael Tremer --- src/pakfire/lib/functions.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pakfire/lib/functions.pl b/src/pakfire/lib/functions.pl index ddb1e9aad..45e3427b1 100644 --- a/src/pakfire/lib/functions.pl +++ b/src/pakfire/lib/functions.pl @@ -768,6 +768,12 @@ sub upgradecore { getcoredb("noforce"); eval(`grep "core_" $Conf::dbdir/lists/core-list.db`); if ("$core_release" > "$Conf::core_mine") { + # Safety check for lazy testers: + # Before we upgrade to the latest release, we re-install the previous rele= ase + # to make sure that the tester has always been on the latest version. + my $tree =3D &get_tree(); + $Conf::core_mine-- if ($tree eq "testing" || $tree eq "unstable"); + message("CORE UPGR: Upgrading from release $Conf::core_mine to $core_relea= se"); =09 my @seq =3D `seq $Conf::core_mine $core_release`; --=20 2.20.1 --===============4177571079503990664==--