summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pacman/remove.c1
-rw-r--r--src/pacman/sync.c2
-rw-r--r--src/pacman/upgrade.c1
3 files changed, 3 insertions, 1 deletions
diff --git a/src/pacman/remove.c b/src/pacman/remove.c
index 6d44350b..61b57c77 100644
--- a/src/pacman/remove.c
+++ b/src/pacman/remove.c
@@ -118,6 +118,7 @@ int pacman_remove(alpm_list_t *targets)
/* Step 3: actually perform the removal */
alpm_list_t *pkglist = alpm_trans_get_remove();
if(pkglist == NULL) {
+ printf(_(" there is nothing to do\n"));
goto cleanup; /* we are done */
}
/* print targets and ask user confirmation */
diff --git a/src/pacman/sync.c b/src/pacman/sync.c
index a2ef616d..24acf5f8 100644
--- a/src/pacman/sync.c
+++ b/src/pacman/sync.c
@@ -663,7 +663,7 @@ static int sync_trans(alpm_list_t *targets)
packages = alpm_trans_get_add();
if(packages == NULL) {
/* nothing to do: just exit without complaining */
- printf(_(" local database is up to date\n"));
+ printf(_(" there is nothing to do\n"));
goto cleanup;
}
diff --git a/src/pacman/upgrade.c b/src/pacman/upgrade.c
index 57c7b790..ddb47964 100644
--- a/src/pacman/upgrade.c
+++ b/src/pacman/upgrade.c
@@ -132,6 +132,7 @@ int pacman_upgrade(alpm_list_t *targets)
/* print targets and ask user confirmation */
alpm_list_t *packages = alpm_trans_get_add();
if(packages == NULL) { /* we are done */
+ printf(_(" there is nothing to do\n"));
trans_release();
return(retval);
}