summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pacman/query.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/pacman/query.c b/src/pacman/query.c
index b6814259..bb69527d 100644
--- a/src/pacman/query.c
+++ b/src/pacman/query.c
@@ -213,10 +213,14 @@ static int query_group(alpm_list_t *targets)
static int query_upgrades(void)
{
- alpm_list_t *syncpkgs;
+ alpm_list_t *syncpkgs = NULL;
printf(_("Checking for package upgrades... \n"));
- if((syncpkgs = alpm_db_get_upgrades()) != NULL) {
+ alpm_list_t *syncdbs = alpm_option_get_syncdbs();
+ if(alpm_sync_sysupgrade(db_local, syncdbs, &syncpkgs) == -1) {
+ return(-1);
+ }
+ if(syncpkgs) {
display_targets(syncpkgs, db_local);
return(0);
}