Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/be_sync.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-08-19 19:12:21 -0500
committerDan McGee <dan@archlinux.org>2011-08-19 19:12:21 -0500
commitd9e5dab6aceeb4d32cfa52d5500f0d22cabb487b (patch)
tree031845462cc7aefe45c86a03aae95bb62e44fdeb /lib/libalpm/be_sync.c
parentd307ed5eb9d6684911c55f661e2d58e0fd6e4ceb (diff)
Remove alpm_option_get_* usage from backend
These are all available directly on the handle without indirection. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/be_sync.c')
-rw-r--r--lib/libalpm/be_sync.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libalpm/be_sync.c b/lib/libalpm/be_sync.c
index 75f06645..6e64e5ff 100644
--- a/lib/libalpm/be_sync.c
+++ b/lib/libalpm/be_sync.c
@@ -41,13 +41,12 @@
static char *get_sync_dir(alpm_handle_t *handle)
{
- const char *dbpath = alpm_option_get_dbpath(handle);
- size_t len = strlen(dbpath) + 6;
+ size_t len = strlen(handle->dbpath) + 6;
char *syncpath;
struct stat buf;
MALLOC(syncpath, len, RET_ERR(handle, ALPM_ERR_MEMORY, NULL));
- sprintf(syncpath, "%s%s", dbpath, "sync/");
+ sprintf(syncpath, "%s%s", handle->dbpath, "sync/");
if(stat(syncpath, &buf) != 0) {
_alpm_log(handle, ALPM_LOG_DEBUG, "database dir '%s' does not exist, creating it\n",
@@ -260,7 +259,7 @@ cleanup:
if(_alpm_handle_unlock(handle)) {
_alpm_log(handle, ALPM_LOG_WARNING, _("could not remove lock file %s\n"),
- alpm_option_get_lockfile(handle));
+ handle->lockfile);
}
free(syncpath);
umask(oldmask);