summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-01-19 05:09:43 +0100
committerDan McGee <dan@archlinux.org>2012-01-23 19:21:05 +0100
commitac239c54d0b8f83ee8a0a94456fc84da7f583ccb (patch)
tree335085477fc26229282b61038af35ef13d63f5e6
parente50c4a8837cedf47c2fe1a2c6064b4dc03dc5b03 (diff)
downloadpacman-ac239c54d0b8f83ee8a0a94456fc84da7f583ccb.tar.gz
pacman-ac239c54d0b8f83ee8a0a94456fc84da7f583ccb.tar.xz
libalpm/deps.c: access trans flags directly
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--lib/libalpm/deps.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libalpm/deps.c b/lib/libalpm/deps.c
index 9d7e5470..cbd17a8d 100644
--- a/lib/libalpm/deps.c
+++ b/lib/libalpm/deps.c
@@ -202,8 +202,10 @@ alpm_list_t *_alpm_sortbydeps(alpm_handle_t *handle,
static int no_dep_version(alpm_handle_t *handle)
{
- int flags = alpm_trans_get_flags(handle);
- return flags != -1 && (flags & ALPM_TRANS_FLAG_NODEPVERSION);
+ if(!handle->trans) {
+ return 0;
+ }
+ return (handle->trans->flags & ALPM_TRANS_FLAG_NODEPVERSION);
}
static alpm_depend_t *filtered_depend(alpm_depend_t *dep, int nodepversion)