db: allow comments and empty lines in repositories file
parent
174dd41113
commit
08748b5c3f
|
@ -730,6 +730,10 @@ int apk_db_add_repository(apk_database_t _db, apk_blob_t repository)
|
|||
char tmp[256];
|
||||
int r;
|
||||
|
||||
if (repository.ptr == NULL || *repository.ptr == '\0'
|
||||
|| *repository.ptr == '#')
|
||||
return 0;
|
||||
|
||||
if (db->num_repos >= APK_MAX_REPOS)
|
||||
return -1;
|
||||
|
||||
|
|
Loading…
Reference in New Issue