summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/trans.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/trans.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/trans.c')
-rw-r--r--lib/libalpm/trans.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libalpm/trans.c b/lib/libalpm/trans.c
index 3f595960..c594520d 100644
--- a/lib/libalpm/trans.c
+++ b/lib/libalpm/trans.c
@@ -82,7 +82,7 @@ static alpm_list_t *check_arch(alpm_handle_t *handle, alpm_list_t *pkgs)
alpm_list_t *i;
alpm_list_t *invalid = NULL;
- const char *arch = alpm_option_get_arch(handle);
+ const char *arch = handle->arch;
if(!arch) {
return NULL;
}
@@ -224,9 +224,9 @@ int SYMEXPORT alpm_trans_release(alpm_handle_t *handle)
if(!nolock_flag) {
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);
alpm_logaction(handle, "warning: could not remove lock file %s\n",
- alpm_option_get_lockfile(handle));
+ handle->lockfile);
}
}