Remove unnecessary path check from local database
commit83e42dcccef08233134a0a5da7e3da70638e6c97
authorDan McGee <dan@archlinux.org>
Fri, 9 Mar 2012 19:40:55 +0000 (9 13:40 -0600)
committerDan McGee <dan@archlinux.org>
Fri, 16 Mar 2012 14:49:31 +0000 (16 09:49 -0500)
treebea29489e03c7f93d927bc6aef13a806665971cb
parent5bda38196fbd6ad389fd829924736b007732e2f1
Remove unnecessary path check from local database

This removes a call to _alpm_local_db_pkgpath() as well as an access()
call when reading the local database. This appears to be code from 2006
that has stuck around. We don't need it because:

1) We never use this path except to check it via access(); however, we
   are already in a readdir() loop so it exists, or at least did at the
   time of the call.
2) The fopen() and other calls will fail on accessing the database files
   anyway, and we need to check those for errors.

Signed-off-by: Dan McGee <dan@archlinux.org>
lib/libalpm/be_local.c