From 207c060e3437c42ffef4cc4fd3719624f06bc939 Mon Sep 17 00:00:00 2001 From: Caspar Zhang Date: Sat, 18 Jun 2022 01:47:43 +0800 Subject: [PATCH] obsoletes anolis-latest-repos to make sure $releasever get updated to string '8', package `anolis-latest-repos` was introduced. However this package replaced and obsoleted `anolis-repos` directly, this would cause bad results in repo files: all repo files remained out-of-date even a new anolis-release came out. `anolis-latest-repos` is evil, and should be dropped out. Now we have a new implementation to keep $releasever to be string '8', which is `dnf-plugin-releasever-adapter`, and `anolis-latest-repos` should be dropped out and obsoleted. Signed-off-by: Caspar Zhang --- anolis-release.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/anolis-release.spec b/anolis-release.spec index e419f99..3b6df0f 100644 --- a/anolis-release.spec +++ b/anolis-release.spec @@ -1,4 +1,4 @@ -%define anolis_release 2 +%define anolis_release 3 %define debug_package %{nil} %define product_family Anolis OS @@ -47,6 +47,7 @@ Source108: AnolisOS-Extras.repo %package -n anolis-repos Summary: %{product_family} package repositories Group: System Environment/Base +Obsoletes: anolis-latest-repos Provides: anolis-repos(%{base_release_version}) = %{full_release_version} Requires: system-release = %{full_release_version} Requires: anolis-gpg-keys = %{version}-%{release} @@ -167,6 +168,9 @@ rm -rf %{buildroot} /etc/pki/rpm-gpg/ %changelog +* Sat Jun 18 2022 Caspar Zhang - 8.6-3 +- Obsoletes anolis-latest-repos + * Fri Jun 10 2022 Xiaoping Liu - 8.6-2 - Remove Experimental repo @@ -205,7 +209,7 @@ rm -rf %{buildroot} - Update to 8.4 * Thu Jun 03 2021 yangxiaoxuan - 8.2-8 -- Modify the mirror url of the repo file +- Modify the mirror url of the repo file * Wed May 19 2021 Hang Zhao <1209176326@qq.com> - 8.2-9 - Update openanolis url -- Gitee