From a53bf5018986ed1bef4958ad56e5dd87266485fd Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Mon, 2 May 2005 08:05:47 +0000 Subject: get ride of ORE tags --- src/pacman/pacman.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/pacman/pacman.c') diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index 24a798ef..45b5cfd3 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -259,11 +259,10 @@ int pacman_deptest(list_t *targets) return(1); } - /* ORE - * For ADD transaction, implement a hack to alpm_trans_addtarget() to add - * a dummy target based on the pattern: "__dummy__|version|dep1|dep2|..." - * where "dummy" is the package name, "version" its version, and every dep? - * the content of the "depends" field. + /* We use a hidden facility from alpm_trans_addtarget() to add a dummy + * target to the transaction (see the library code for details). + * It allows us to use alpm_trans_prepare() to check dependencies of the + * given target. */ str = (char *)malloc(strlen("name=dummy|version=1.0-1")+1); strcpy(str, "name=dummy|version=1.0-1"); -- cgit v1.2.3