From d39b1dbe627af218e49be6424857089a5888903b Mon Sep 17 00:00:00 2001 From: Xavier Chantry Date: Sun, 19 Jul 2009 11:15:11 +0200 Subject: Add new --print operation for all operations And a new --print-format option to configure the output. This implements FS#14208 Example usage : pacman -Sp --print-format "%r/%n-%v : %l [%s]" kdelibs extra/kdelibs-4.3.2-4 : ftp://mir2.archlinuxfr.org/archlinux/extra/os/i686/kdelibs-4.3.2-4-i686.pkg.tar.gz [0,00] Signed-off-by: Xavier Chantry Signed-off-by: Dan McGee --- src/pacman/remove.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/pacman/remove.c') diff --git a/src/pacman/remove.c b/src/pacman/remove.c index 61b57c77..4a5d9bfb 100644 --- a/src/pacman/remove.c +++ b/src/pacman/remove.c @@ -121,6 +121,12 @@ int pacman_remove(alpm_list_t *targets) printf(_(" there is nothing to do\n")); goto cleanup; /* we are done */ } + + if(config->print) { + print_packages(pkglist); + goto cleanup; + } + /* print targets and ask user confirmation */ display_targets(pkglist, 0); printf("\n"); -- cgit v1.2.3-24-g4f1b