summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/be_local.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-08-20 02:12:21 +0200
committerDan McGee <dan@archlinux.org>2011-08-20 02:12:21 +0200
commitd9e5dab6aceeb4d32cfa52d5500f0d22cabb487b (patch)
tree031845462cc7aefe45c86a03aae95bb62e44fdeb /lib/libalpm/be_local.c
parentd307ed5eb9d6684911c55f661e2d58e0fd6e4ceb (diff)
downloadpacman-d9e5dab6aceeb4d32cfa52d5500f0d22cabb487b.tar.gz
pacman-d9e5dab6aceeb4d32cfa52d5500f0d22cabb487b.tar.xz
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_local.c')
-rw-r--r--lib/libalpm/be_local.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libalpm/be_local.c b/lib/libalpm/be_local.c
index 1b489224..f53bd640 100644
--- a/lib/libalpm/be_local.c
+++ b/lib/libalpm/be_local.c
@@ -194,8 +194,7 @@ static void *_cache_changelog_open(alpm_pkg_t *pkg)
char clfile[PATH_MAX];
alpm_db_t *db = alpm_pkg_get_db(pkg);
snprintf(clfile, PATH_MAX, "%s/%s/%s-%s/changelog",
- alpm_option_get_dbpath(pkg->handle),
- db->treename, pkg->name, pkg->version);
+ pkg->handle->dbpath, db->treename, pkg->name, pkg->version);
return fopen(clfile, "r");
}