From 34aefc62e45cf221eccf65dd2bcf42ecd51630f3 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 25 Apr 2007 02:27:16 -0400 Subject: Remove single-function upgrade.c Move pacman_upgrade into add.c, at least for now. It really doesn't need its own file. For the long term, we may want to move this whole file back to upgrade.c if we deprecate the add operation. Signed-off-by: Dan McGee --- src/pacman/add.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/pacman/add.c') diff --git a/src/pacman/add.c b/src/pacman/add.c index 632366c6..86091bdc 100644 --- a/src/pacman/add.c +++ b/src/pacman/add.c @@ -1,7 +1,7 @@ /* * add.c * - * Copyright (c) 2002-2006 by Judd Vinet + * Copyright (c) 2002-2007 by Judd Vinet * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -39,6 +39,14 @@ extern config_t *config; +int pacman_upgrade(alpm_list_t *targets) +{ + /* this is basically just a remove-then-add process. pacman_add() will */ + /* handle it */ + config->upgrade = 1; + return(pacman_add(targets)); +} + int pacman_add(alpm_list_t *targets) { alpm_list_t *i = targets, *data = NULL; -- cgit v1.2.3-24-g4f1b