From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter =?utf-8?q?M=C3=BCller?= To: development@lists.ipfire.org Subject: Re: [PATCH] pakfire: Re-install previous core update when in testing mode Date: Mon, 24 Feb 2020 18:57:00 +0000 Message-ID: <4dada98e-46f6-ccd4-46c0-29993364da4d@ipfire.org> In-Reply-To: <20200224185124.16170-1-michael.tremer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8677435467865584681==" List-Id: --===============8677435467865584681== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Reviewed-by: Peter M=C3=BCller > From: Arne Fitzenreiter >=20 > Fixes: #12302 > Signed-off-by: Arne Fitzenreiter > Tested-by: Michael Tremer > --- > src/pakfire/lib/functions.pl | 6 ++++++ > 1 file changed, 6 insertions(+) >=20 > 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 re= lease > + # 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_rel= ease"); > =09 > my @seq =3D `seq $Conf::core_mine $core_release`; >=20 --===============8677435467865584681==--