summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/db.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm/db.c')
-rw-r--r--lib/libalpm/db.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c
index 7768b8a5..68a83b0d 100644
--- a/lib/libalpm/db.c
+++ b/lib/libalpm/db.c
@@ -212,7 +212,7 @@ pmpkg_t *db_scan(pmdb_t *db, char *target, unsigned int inforeq)
if(target != NULL) {
/* search for a specific package (by name only) */
- rewinddir(db->dir);
+ db_rewind(db);
while(!found && (ent = readdir(db->dir)) != NULL) {
if(!strcmp(ent->d_name, ".") || !strcmp(ent->d_name, "..")) {
continue;
@@ -635,7 +635,7 @@ PMList *db_find_conflicts(pmdb_t *db, PMList *targets, char *root)
*
pmpkg_t *info = NULL;
char *dbstr = NULL;
- rewinddir(db->dir);
+ db_rewind(db);
while((info = db_scan(db, NULL, INFRQ_DESC | INFRQ_FILES)) != NULL) {
for(i = info->files; i; i = i->next) {
if(i->data == NULL) continue;