libalpm
Arch Linux Package Manager Library
Functions
upgrade.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <alpm.h>
#include <alpm_list.h>
#include "pacman.h"
#include "conf.h"
#include "util.h"
Include dependency graph for upgrade.c:

Go to the source code of this file.

Functions

int pacman_upgrade (alpm_list_t *targets)
 Upgrade a specified list of packages.

Function Documentation

int pacman_upgrade ( alpm_list_t targets)

Upgrade a specified list of packages.

Parameters:
targetsa list of packages (as strings) to upgrade
Returns:
0 on success, 1 on failure

Definition at line 40 of file upgrade.c.

References _, alpm_add_pkg(), alpm_errno(), alpm_fetch_pkgurl(), alpm_list_add(), alpm_list_next(), ALPM_LOG_ERROR, alpm_option_get_default_siglevel(), alpm_pkg_free(), alpm_pkg_load(), alpm_strerror(), config, __alpm_list_t::data, __config_t::explicit_adds, __config_t::flags, __config_t::handle, pm_printf(), sync_prepare_execute(), trans_init(), and trans_release().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function: