diff options
Diffstat (limited to 'src/database.c')
-rw-r--r-- | src/database.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/database.c b/src/database.c index 7ec9764..b1cdf85 100644 --- a/src/database.c +++ b/src/database.c @@ -959,6 +959,17 @@ int apk_repository_update(struct apk_database *db, struct apk_repository *repo) return 0; } +int apk_repository_update_all(struct apk_database *db) +{ + int i, ret; + for (i = 0; i < db->num_repos; i++) { + ret = apk_repository_update(db, &db->repos[i]); + if (ret < 0) + return ret; + } + return 0; +} + int apk_db_add_repository(apk_database_t _db, apk_blob_t repository) { struct apk_database *db = _db.db; |