aboutsummaryrefslogtreecommitdiffstats
path: root/src/database.c
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2008-11-06 16:58:58 +0200
committerTimo Teras <timo.teras@iki.fi>2008-11-06 16:58:58 +0200
commit57154db85d459a869bbfb7a3bd2bcb16699a0a7a (patch)
tree64394df9d0e0775c334ff6d69c67a4a4322d625b /src/database.c
parentb380d4f8e08aefdf5f685bb3e6731e670d278277 (diff)
downloadaports-57154db85d459a869bbfb7a3bd2bcb16699a0a7a.tar.bz2
aports-57154db85d459a869bbfb7a3bd2bcb16699a0a7a.tar.xz
db: parse new style .PKGINFO
Diffstat (limited to 'src/database.c')
-rw-r--r--src/database.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/database.c b/src/database.c
index eed584ef4d..b43b360b72 100644
--- a/src/database.c
+++ b/src/database.c
@@ -476,9 +476,9 @@ int apk_db_open(struct apk_database *db, const char *root)
free(db->root);
return -1;
}
-
- apk_db_add_repository(db, apk_repository);
}
+ if (apk_repository != NULL)
+ apk_db_add_repository(db, apk_repository);
return apk_db_read_config(db);
}