diff options
author | Timo Teras <timo.teras@iki.fi> | 2008-11-06 16:58:58 +0200 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2008-11-06 16:58:58 +0200 |
commit | 57154db85d459a869bbfb7a3bd2bcb16699a0a7a (patch) | |
tree | 64394df9d0e0775c334ff6d69c67a4a4322d625b /src/database.c | |
parent | b380d4f8e08aefdf5f685bb3e6731e670d278277 (diff) | |
download | apk-tools-57154db85d459a869bbfb7a3bd2bcb16699a0a7a.tar.gz apk-tools-57154db85d459a869bbfb7a3bd2bcb16699a0a7a.tar.bz2 apk-tools-57154db85d459a869bbfb7a3bd2bcb16699a0a7a.tar.xz apk-tools-57154db85d459a869bbfb7a3bd2bcb16699a0a7a.zip |
db: parse new style .PKGINFO
Diffstat (limited to 'src/database.c')
-rw-r--r-- | src/database.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/database.c b/src/database.c index eed584e..b43b360 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); } |