From cae7f0bb655319c145927b021057d38a75e9e801 Mon Sep 17 00:00:00 2001 From: dragon Date: Wed, 15 Jan 2025 15:24:11 +0800 Subject: [PATCH] rename settings --- custom/conf/app.example.ini | 2 +- modules/setting/packages.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini index efd34f939d0e3..3823d00ddb150 100644 --- a/custom/conf/app.example.ini +++ b/custom/conf/app.example.ini @@ -2625,7 +2625,7 @@ LEVEL = Info ;; Enable RPM re-signing by default. (It will overwrite the old signature ,using v4 format, not compatible with CentOS 6 or older) ;DEFAULT_RPM_SIGN_ENABLED = false ;; Keep only the latest version in Arch DB. -;METADATA_ARCH_LATEST_VERSION = false +;REPO_KEEP_LATEST_VERSION_ARCH = false ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; diff --git a/modules/setting/packages.go b/modules/setting/packages.go index f722cb5ee4c73..9bc749695592e 100644 --- a/modules/setting/packages.go +++ b/modules/setting/packages.go @@ -104,7 +104,7 @@ func loadPackagesFrom(rootCfg ConfigProvider) (err error) { Packages.LimitSizeSwift = mustBytes(sec, "LIMIT_SIZE_SWIFT") Packages.LimitSizeVagrant = mustBytes(sec, "LIMIT_SIZE_VAGRANT") Packages.DefaultRPMSignEnabled = sec.Key("DEFAULT_RPM_SIGN_ENABLED").MustBool(false) - Packages.RepoLatestVersionArch = sec.Key("METADATA_ARCH_LATEST_VERSION").MustBool(false) + Packages.RepoLatestVersionArch = sec.Key("REPO_KEEP_LATEST_VERSION_ARCH").MustBool(false) return nil }