[pacman-dev] [PATCH 2/2] New feature: files verification

changaco changaco at gmail.com
Sun Jul 19 07:13:57 EDT 2009


Xavier wrote :
> $ ./src/pacman/pacman -Qk
> at: /var/spool/atd/.SEQ (Permission denied)
> ttf-ms-fonts: /tmp/ttf-ms-fonts/ (No such file or directory)
> ttf-ms-fonts: /tmp/ttf-ms-fonts/andale32.exe (No such file or
> directory)
> ttf-ms-fonts: /tmp/ttf-ms-fonts/arial32.exe (No such file or
> directory)
> ttf-ms-fonts: /tmp/ttf-ms-fonts/arialb32.exe (No such file or
> directory)
> ttf-ms-fonts: /tmp/ttf-ms-fonts/comic32.exe (No such file or
> directory)
> ttf-ms-fonts: /tmp/ttf-ms-fonts/courie32.exe (No such file or
> directory)
> ttf-ms-fonts: /tmp/ttf-ms-fonts/georgi32.exe (No such file or
> directory)
> ttf-ms-fonts: /tmp/ttf-ms-fonts/impact32.exe (No such file or
> directory)
> ttf-ms-fonts: /tmp/ttf-ms-fonts/times32.exe (No such file or
> directory)
> ttf-ms-fonts: /tmp/ttf-ms-fonts/trebuc32.exe (No such file or
> directory)
> ttf-ms-fonts: /tmp/ttf-ms-fonts/verdan32.exe (No such file or
> directory)
> ttf-ms-fonts: /tmp/ttf-ms-fonts/webdin32.exe (No such file or
> directory)
> Check complete: 151945 files (609 packages)
> Damaged packages: at ttf-ms-fonts
> 
> should we just skip the file when the permission is denied? when errno == EACCES
> "at" is wrongly reported as damaged.

If you ignore the permission denied you will ignore missing files that are in protected directories. -Qk should be run as root.

And I still don't get why you absolutely want to search in /tmp, it makes the return value of -Qk totally irrelevant in scripts.


More information about the pacman-dev mailing list