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

Xavier shiningxc at gmail.com
Sat Jul 18 14:12:01 EDT 2009


On Sat, Jul 18, 2009 at 8:09 PM, Xavier Chantry<shiningxc at gmail.com> wrote:
> From: Charly COSTE <changaco at laposte.net>
>
> A new option "-Qk" which checks if all packages files are really on the
> system (i.e. not accidentally deleted).
>
> This implements FS#13877
>
> Signed-off-by: Charly COSTE <changaco at laposte.net>
> [Xav : don't ignore tmp, don't repeat package names in quiet output, add
> errno message in verbose output]
> Signed-off-by: Xavier Chantry <shiningxc at gmail.com>
> ---

$ ./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.


More information about the pacman-dev mailing list