From 63000584b6442412dbcdf1dd867e09fbde404afe Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Sun, 4 Feb 2007 08:26:52 +0000 Subject: Implemented a crappy version of -Qu (query upgrades). This simply outputs the packages to be upgraded in a -Su operation. Much of the code is duplicated from sync.c. TODO: move the implementation to upgrades.c, and reimplement the sync_sysupgrade function in terms of this: trans->packages = alpm_get_upgrades(); --- lib/libalpm/alpm.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/libalpm/alpm.h') diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h index 15af82b1..3522604f 100644 --- a/lib/libalpm/alpm.h +++ b/lib/libalpm/alpm.h @@ -486,6 +486,8 @@ char *alpm_strerror(int err); /* Version Compare */ int alpm_versioncmp(const char *a, const char *b); +alpm_list_t *alpm_get_upgrades(); + #ifdef __cplusplus } #endif -- cgit v1.2.3-54-g00ecf