Pacman

Welcome to the Pacman bug tracker. Please search the current bugs and feature requests before filing a new one! Use advanced search and select "Search in Comments".

* Please select the correct category and version.
* Write a descriptive summary, background info, and provide a reproducible test case whenever possible.
Tasklist

FS#72794 - pacman -Ql somefile should give the Qo as hint to the user.

Attached to Project: Pacman
Opened by soloturn (soloturn) - Saturday, 20 November 2021, 01:46 GMT
Last edited by Jonas Witschel (diabonas) - Saturday, 20 November 2021, 09:10 GMT
Task Type Feature Request
Category Output
Status Unconfirmed
Assigned To No-one
Architecture All
Severity Very Low
Priority Normal
Reported Version 6.0.0
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Description:
extend the error message in case its a file, so pacman -Qo <filname> is hinted as well. see a diff below.

let me set the priority a little higher, as the change is 5 minutes.


> git diff
diff --git a/src/pacman/query.c b/src/pacman/query.c
index e3e7d844..00534ad0 100644
--- a/src/pacman/query.c
+++ b/src/pacman/query.c
@@ -493,7 +493,7 @@ int pacman_query(alpm_list_t *targets)
if(!config->op_q_isfile && access(strname, R_OK) == 0) {
pm_printf(ALPM_LOG_WARNING,
_("'%s' is a file, you might want to use %s.\n"),
- strname, "-p/--file");
+ strname, "-p/--file, -Qo");
}
}
}
This task depends upon

Comment by Jonas Witschel (diabonas) - Saturday, 20 November 2021, 09:10 GMT
Please submit patches for pacman to the pacman-dev@lists.archlinux.org mailing list.

Loading...