AUR AI Reviewer

Review Results

Version #3153 of python310 · commit 1e6b0f90dbf1 · status Reviewed

Risk 0/5 · Safe PKGBUILD
Result #6434

Comment

The change is limited to the upstream Python source URL version path, replacing `${pkgver%rc*}` with `${pkgver%%[a-z]*}`. This broadens the truncation logic so prerelease suffixes beyond `rc` (e.g. alpha/beta/dev) resolve to the correct upstream directory, and it does not introduce new sources, network behavior, execution, or packaging side effects. The source remains HTTPS on the official python.org domain, and the rest of the PKGBUILD is unchanged in the provided hunk.

@@ -19,7 +19,7 @@ makedepends=("gdb" "tk")
 optdepends=("python-pip" "python-pipx" "python-setuptools" "tk")
 options=(strip !debug !lto)
 source=(
-	https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz #{,.asc}
+	https://www.python.org/ftp/python/${pkgver%%[a-z]*}/Python-${pkgver}.tar.xz #{,.asc}
 	EXTERNALLY-MANAGED
 )
 sha256sums=(