Diff mysqld_exporter-0.14.0_p20221209 with a mysqld_exporter-0.14.0_p20230328

/usr/portage/app-metrics/mysqld_exporter/mysqld_exporter-0.14.0_p20230328.ebuild 2025-07-29 16:22:12.572448054 +0300
1
# Copyright 1999-2022 Gentoo Authors
1
# Copyright 1999-2025 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5
inherit go-module
5
inherit eapi9-ver go-module
6 6
# uncomment the first setting of MY_PV for a normal release
7 7
# MY_PV="v${PV/_rc/-rc.}"
8 8
# set MY_PV to the full commit hash for a snapshot release
9
MY_PV_HASH=530e351d293dd632f31b80947f5ca420ef17adaf
9
MY_PV_HASH=fad2c0ccd8c0df8fed91a81463e930e4485fdfee
10
: ${MY_PV_HASH_FOR_VENDOR:=${MY_PV_HASH}}
10 11
if [[ -n "${MY_PV_HASH}" ]]; then
11 12
	MY_PV=${MY_PV_HASH}
12 13
	MYSQLD_EXPORTER_COMMIT=${MY_PV_HASH:0:8}
......
79 80
	if [[ -z "${REPLACING_VERSIONS}" ]]; then
80 81
		# This is a new installation
81 82
		elog "Create \"${EROOT}/var/lib/mysqld_exporter/.my.cnf\" to read MySQL credentials from file."
82
	else
83
		local _replacing_version=
84
		for _replacing_version in ${REPLACING_VERSIONS}; do
85
			if ! ver_test "${_replacing_version}" -ge "0.11.0"; then
86
				elog "Starting with ${PN}-0.11.0, command-line flags will require double dashes (--)."
87
				elog "You must update your configuration or ${PN} won't start."
88

  
89
				break
90
			fi
91
		done
83
	elif ver_replacing -lt "0.11.0"; then
84
		elog "Starting with ${PN}-0.11.0, command-line flags will require double dashes (--)."
85
		elog "You must update your configuration or ${PN} won't start."
92 86
	fi
93 87
}
Thank you!