aboutsummaryrefslogtreecommitdiffstats
path: root/src/apk_database.h
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-08-06 16:00:20 +0300
committerTimo Teras <timo.teras@iki.fi>2009-08-06 16:00:20 +0300
commitf02f326238fd1e6424bf914e102ce265e7c156ec (patch)
treeceded7eb995efa68086b613cbc286d198b60da0a /src/apk_database.h
parentced1fa83d6361ebfdc40920d98eb292ca4661b4e (diff)
downloadapk-tools-f02f326238fd1e6424bf914e102ce265e7c156ec.tar.gz
apk-tools-f02f326238fd1e6424bf914e102ce265e7c156ec.tar.bz2
apk-tools-f02f326238fd1e6424bf914e102ce265e7c156ec.tar.xz
db: prefer local repositories, and implement --no-network
this helps boots sequence when network is not available.
Diffstat (limited to 'src/apk_database.h')
-rw-r--r--src/apk_database.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/apk_database.h b/src/apk_database.h
index 09f9ef7..f2b5ca7 100644
--- a/src/apk_database.h
+++ b/src/apk_database.h
@@ -98,6 +98,7 @@ struct apk_database {
unsigned name_id, num_repos;
const char *cache_dir;
int permanent;
+ unsigned int local_repos;
struct apk_dependency_array *world;
struct apk_string_array *protected_paths;
@@ -159,6 +160,8 @@ int apk_db_index_read_file(struct apk_database *db, const char *file, int repo);
int apk_db_index_write(struct apk_database *db, struct apk_ostream *os);
int apk_db_add_repository(apk_database_t db, apk_blob_t repository);
+struct apk_repository *apk_db_select_repo(struct apk_database *db,
+ struct apk_package *pkg);
int apk_repository_update(struct apk_database *db, struct apk_repository *repo);
int apk_db_cache_active(struct apk_database *db);