Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=f2e9f666cb91803b9f283c1602c3e395326b4fcc

commit f2e9f666cb91803b9f283c1602c3e395326b4fcc
Author: Miklos Vajna <[EMAIL PROTECTED]>
Date:   Sat Nov 24 22:58:07 2007 +0100

_pacman_db_test(): ignore the .lastupdate file
thx crazy for reporting the issue

diff --git a/lib/libpacman/be_files.c b/lib/libpacman/be_files.c
index 8fcde3d..a8f6e2e 100644
--- a/lib/libpacman/be_files.c
+++ b/lib/libpacman/be_files.c
@@ -70,7 +70,7 @@ pmlist_t *_pacman_db_test(pmdb_t *db)
pmlist_t *ret = NULL;

while ((ent = readdir(db->handle)) != NULL) {
-               if(!strcmp(ent->d_name, ".") || !strcmp(ent->d_name, "..")) {
+               if(!strcmp(ent->d_name, ".") || !strcmp(ent->d_name, "..") || 
!strcmp(ent->d_name, ".lastupdate")) {
continue;
}
snprintf(path, PATH_MAX, "%s/%s/desc", db->path, ent->d_name);
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to