summaryrefslogtreecommitdiff
path: root/lib/libalpm/alpm.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm/alpm.c')
-rw-r--r--lib/libalpm/alpm.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c
index 6b79d4c8..145996fe 100644
--- a/lib/libalpm/alpm.c
+++ b/lib/libalpm/alpm.c
@@ -202,6 +202,18 @@ int alpm_db_unregister(PM_DB *db)
return(0);
}
+int alpm_db_update(char *treename, char *archive)
+{
+ /* Sanity checks */
+ ASSERT(handle != NULL, return(-1));
+ ASSERT(treename != NULL && strlen(treename) != 0, PM_RET_ERR(PM_ERR_WRONG_ARGS, -1));
+
+ /* ORE
+ stat(archive); */
+
+ return(db_update(handle->root, handle->dbpath, treename, archive));
+}
+
PM_PKG *alpm_db_readpkg(PM_DB *db, char *name)
{
/* Sanity checks */