diff options
author | Dan McGee <dan@archlinux.org> | 2012-03-09 13:40:55 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-03-16 09:49:31 -0500 |
commit | 83e42dcccef08233134a0a5da7e3da70638e6c97 (patch) | |
tree | bea29489e03c7f93d927bc6aef13a806665971cb /src/pacman/deptest.c | |
parent | 5bda38196fbd6ad389fd829924736b007732e2f1 (diff) |
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>
Diffstat (limited to 'src/pacman/deptest.c')
0 files changed, 0 insertions, 0 deletions