add.c File Reference

#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <alpm.h>
#include <alpm_list.h>
#include "pacman.h"
#include "callback.h"
#include "conf.h"
#include "util.h"

Include dependency graph for src/pacman/add.c:

Go to the source code of this file.

Functions

int pacman_upgrade (alpm_list_t *targets)
 Upgrade a specified list of packages.
int pacman_add (alpm_list_t *targets)
 Add a specified list of packages which cannot already be installed.


Function Documentation

int pacman_add ( alpm_list_t targets  ) 

Add a specified list of packages which cannot already be installed.

Parameters:
targets a list of packages (as strings) to add
Returns:
0 on success, 1 on failure

Definition at line 70 of file src/pacman/add.c.

References _, alpm_conflict_get_package1(), alpm_conflict_get_package2(), alpm_dep_get_string(), alpm_fetch_pkgurl(), alpm_fileconflict_get_ctarget(), alpm_fileconflict_get_file(), alpm_fileconflict_get_target(), alpm_fileconflict_get_type(), alpm_list_free(), alpm_list_getdata(), alpm_list_next(), alpm_miss_get_dep(), alpm_miss_get_target(), alpm_option_get_lockfile(), alpm_strerrorlast(), alpm_trans_addtarget(), alpm_trans_commit(), alpm_trans_init(), alpm_trans_prepare(), cb_trans_conv(), cb_trans_evt(), cb_trans_progress(), config, __alpm_list_t::data, __config_t::flags, FREELIST, PM_ERR_CONFLICTING_DEPS, PM_ERR_FILE_CONFLICTS, PM_ERR_HANDLE_LOCK, PM_ERR_UNSATISFIED_DEPS, pm_errno, PM_FILECONFLICT_FILESYSTEM, PM_FILECONFLICT_TARGET, PM_LOG_ERROR, pm_printf(), PM_TRANS_TYPE_ADD, PM_TRANS_TYPE_UPGRADE, and __config_t::upgrade.

Referenced by main(), and pacman_upgrade().

Here is the call graph for this function:

Here is the caller graph for this function:

int pacman_upgrade ( alpm_list_t targets  ) 

Upgrade a specified list of packages.

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

Definition at line 55 of file src/pacman/add.c.

References config, pacman_add(), and __config_t::upgrade.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on Mon Jan 14 23:53:45 2008 for libalpm by  doxygen 1.5.4