Historical bug tracker for the Pacman package manager.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
FS#13551 - [Feature Request] Check for backup files existence
Attached to Project:
Pacman
Opened by Xavier (shining) - Thursday, 26 February 2009, 14:46 GMT
Last edited by Allan McRae (Allan) - Monday, 07 September 2009, 05:48 GMT
Opened by Xavier (shining) - Thursday, 26 February 2009, 14:46 GMT
Last edited by Allan McRae (Allan) - Monday, 07 September 2009, 05:48 GMT
|
DetailsI just noticed that wrong backup files entries go totally unnoticed.
See for example These errors can not really be checked at the PKGBUILD level, but at the package level it should be easy enough. However, namcap does not display any warnings on these packages. pacman does not display any warnings when installing them : the missing backup files are stored in the database without their corresponding md5sum %BACKUP% etc/ufw/before.rules e5f58e321f38dd7534380937b470c928 etc/ufw/user.rules etc/ufw/after.rules 3a51c36bfd12a053c50860a6b332e2d2 sysctl.conf etc/ufw/ufw.conf 477a9a8b7d2f6d89f74c5ee469a9c4d3 and pacman -Qii silently ignores the non existent entries : Backup Files: Not Modified /etc/ufw/before.rules Not Modified /etc/ufw/after.rules Not Modified /etc/ufw/ufw.conf It is not a big deal, but I just thought I would report it somewhere in case anyone cares :) |
This task depends upon
Closed by Allan McRae (Allan)
Monday, 07 September 2009, 05:48 GMT
Reason for closing: Fixed
Additional comments about closing: git commit b53aa87e
Monday, 07 September 2009, 05:48 GMT
Reason for closing: Fixed
Additional comments about closing: git commit b53aa87e
% grep -A20 -r BACKUP /var/lib/pacman/local | egrep -v "BACKUP|files\-$|^\-\-$" | egrep -v "[a-f0-9]{10}"
/var/lib/pacman/local/ntp-4.2.4p6-1.1/files-conf.d/ntp-client.conf
/var/lib/pacman/local/ufw-0.26-1/files-etc/ufw/user.rules
/var/lib/pacman/local/ufw-0.26-1/files-sysctl.conf
/var/lib/pacman/local/lirc-utils-0.8.3-1/files-etc/lircd.conf
/var/lib/pacman/local/lirc-utils-0.8.3-1/files-etc/lircmd.conf
/var/lib/pacman/local/udev-135-1/files-etc/udev/cdsymlinks.conf
/var/lib/pacman/local/pacman-3.2.2-1/files-etc/pacman.d/mirrorlist
/var/lib/pacman/local/foomatic-filters-4.0_20090211-1/files-/etc/foomatic/filter.conf
As I mentioned in the original report, I already reported a bug for ntp, ufw and foomatic-filters. But not for lirc-utils, udev and pacman.
Checking for missing backup files before taring up the package is also easy. I am wary about makepkg becoming too much of a package checking tool but it is becoming apparent at least some package checking needs done on this level (e.g
FS#14751).The actual existence for of the files $pkgdir/${backup[@]} should be checked where your current check is. Name this function check_package() as other checks can go there (e.g. checking for $srcdir references).