diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini index 3823d00ddb..af69ba70b1 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. -;REPO_KEEP_LATEST_VERSION_ARCH = false +;KEEP_LATEST_VERSION_ARCH = false ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; diff --git a/modules/setting/packages.go b/modules/setting/packages.go index 9bc7496955..8eb0400203 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("REPO_KEEP_LATEST_VERSION_ARCH").MustBool(false) + Packages.RepoLatestVersionArch = sec.Key("KEEP_LATEST_VERSION_ARCH").MustBool(false) return nil }