index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2011-08-19 19:12:21 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-08-19 19:12:21 -0500 |
commit | d9e5dab6aceeb4d32cfa52d5500f0d22cabb487b (patch) | |
tree | 031845462cc7aefe45c86a03aae95bb62e44fdeb /lib/libalpm/be_sync.c | |
parent | d307ed5eb9d6684911c55f661e2d58e0fd6e4ceb (diff) |
-rw-r--r-- | lib/libalpm/be_sync.c | 7 |
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); |