Jelle van der Waa pushed to branch main at Arch Linux / Packaging / Packages /
python
Commits:
2ef23c62 by Jelle van der Waa at 2026-01-10T20:16:39+01:00
genrebuild: check if files database is out of date
- - - - -
1 changed file:
- genrebuild
Changes:
=====================================
genrebuild
=====================================
@@ -2,6 +2,13 @@
pyver=$(pacman -S --print-format %v python | grep -oP '^[0-9]+\.[0-9]+')
exclude=('pypy3\?' 'cuda' 'cuda-tools' 'metasploit' 'ghidra' 'polymake'
'nvidia-settings')
+current_time=$(date +%s)
+file_time=$(stat --format=%Y "/var/lib/pacman/sync/core.files")
+
+if [ $((current_time - file_time)) -gt 86400 ]; then
+ echo "pacman files database is out of date, please run pacman -Fy"
+ exit 1
+fi
{
pacman -Fq /usr/lib/python${pyver}/ | grep -v archlinuxcn | cut -d / -f 2
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python/-/commit/2ef23c62c07623c2a4ceadd89ed7b3c514078201
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python/-/commit/2ef23c62c07623c2a4ceadd89ed7b3c514078201
You're receiving this email because of your account on gitlab.archlinux.org.