Skip to content
Snippets Groups Projects
Commit 08748b5c authored by Natanael Copa's avatar Natanael Copa
Browse files

db: allow comments and empty lines in repositories file

parent 174dd411
No related branches found
No related tags found
No related merge requests found
...@@ -730,6 +730,10 @@ int apk_db_add_repository(apk_database_t _db, apk_blob_t repository) ...@@ -730,6 +730,10 @@ int apk_db_add_repository(apk_database_t _db, apk_blob_t repository)
char tmp[256]; char tmp[256];
int r; int r;
if (repository.ptr == NULL || *repository.ptr == '\0'
|| *repository.ptr == '#')
return 0;
if (db->num_repos >= APK_MAX_REPOS) if (db->num_repos >= APK_MAX_REPOS)
return -1; return -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment