summaryrefslogtreecommitdiffstats
path: root/src/pacman/remove.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pacman/remove.c')
-rw-r--r--src/pacman/remove.c6
1 files changed, 6 insertions, 0 deletions
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");