summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/be_sync.c
diff options
context:
space:
mode:
authormorganamilo <morganamilo@archlinux.org>2020-01-26 08:01:42 +0100
committerAllan McRae <allan@archlinux.org>2020-01-28 01:46:27 +0100
commitd0c487d4dcc6fec6f4bd8e1cefa1de9ffbe0e460 (patch)
treea93e22ff2ae481767df86a651352c424f57cc850 /lib/libalpm/be_sync.c
parent0a25548cd0910f66dea2dfab21f75a6d15366d64 (diff)
downloadpacman-d0c487d4dcc6fec6f4bd8e1cefa1de9ffbe0e460.tar.gz
pacman-d0c487d4dcc6fec6f4bd8e1cefa1de9ffbe0e460.tar.xz
Docs docs docs
libalpm: move docs from .c files into alpm.h And fix/expand some along the way. Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/be_sync.c')
-rw-r--r--lib/libalpm/be_sync.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/lib/libalpm/be_sync.c b/lib/libalpm/be_sync.c
index e33ec7bd..f79c8a76 100644
--- a/lib/libalpm/be_sync.c
+++ b/lib/libalpm/be_sync.c
@@ -136,41 +136,6 @@ valid:
return 0;
}
-/** Update a package database
- *
- * An update of the package database \a db will be attempted. Unless
- * \a force is true, the update will only be performed if the remote
- * database was modified since the last update.
- *
- * This operation requires a database lock, and will return an applicable error
- * if the lock could not be obtained.
- *
- * Example:
- * @code
- * alpm_list_t *syncs = alpm_get_syncdbs();
- * for(i = syncs; i; i = alpm_list_next(i)) {
- * alpm_db_t *db = alpm_list_getdata(i);
- * result = alpm_db_update(0, db);
- *
- * if(result < 0) {
- * printf("Unable to update database: %s\n", alpm_strerrorlast());
- * } else if(result == 1) {
- * printf("Database already up to date\n");
- * } else {
- * printf("Database updated\n");
- * }
- * }
- * @endcode
- *
- * @ingroup alpm_databases
- * @note After a successful update, the \link alpm_db_get_pkgcache()
- * package cache \endlink will be invalidated
- * @param force if true, then forces the update, otherwise update only in case
- * the database isn't up to date
- * @param db pointer to the package database to update
- * @return 0 on success, -1 on error (pm_errno is set accordingly), 1 if up to
- * to date
- */
int SYMEXPORT alpm_db_update(int force, alpm_db_t *db)
{
char *syncpath;