[pacman-dev] [PATCH] Consistently add leading slash for the output of files operations
Allan McRae
allan at archlinux.org
Sat Oct 17 09:50:43 UTC 2015
Signed-off-by: Allan McRae <allan at archlinux.org>
---
src/pacman/files.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/pacman/files.c b/src/pacman/files.c
index ceec342..feda75d 100644
--- a/src/pacman/files.c
+++ b/src/pacman/files.c
@@ -61,7 +61,7 @@ static int files_fileowner(alpm_list_t *syncs, alpm_list_t *targets) {
if(alpm_filelist_contains(files, f)) {
if(!config->quiet) {
- printf(_("%s is owned by %s/%s %s\n"), filename,
+ printf(_("/%s is owned by %s/%s %s\n"), f,
alpm_db_get_name(repo), alpm_pkg_get_name(pkg),
alpm_pkg_get_version(pkg));
} else {
@@ -147,7 +147,7 @@ static int files_search(alpm_list_t *syncs, alpm_list_t *targets, int regex) {
for(ml = match; ml; ml = alpm_list_next(ml)) {
c = ml->data;
- printf(" %s\n", c);
+ printf(" /%s\n", c);
}
FREELIST(match);
}
--
2.6.1
More information about the pacman-dev
mailing list