mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-15 13:55:09 -05:00
* Fixed -Qil regression, now both flags are honored. (FS #1355)
This commit is contained in:
parent
39478292af
commit
9ba23c8248
@ -189,8 +189,7 @@ int pacman_query(alpm_list_t *targets)
|
|||||||
return(1);
|
return(1);
|
||||||
}
|
}
|
||||||
if(config->op_q_info) {
|
if(config->op_q_info) {
|
||||||
dump_pkg_full(info, 0);
|
dump_pkg_full(info, config->op_q_info);
|
||||||
MSG(NL, "\n");
|
|
||||||
}
|
}
|
||||||
if(config->op_q_list) {
|
if(config->op_q_list) {
|
||||||
dump_pkg_files(info);
|
dump_pkg_files(info);
|
||||||
@ -260,6 +259,16 @@ int pacman_query(alpm_list_t *targets)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* find a target */
|
/* find a target */
|
||||||
|
if(config->op_q_info) {
|
||||||
|
dump_pkg_full(info, config->op_q_info);
|
||||||
|
}
|
||||||
|
if(config->op_q_list) {
|
||||||
|
dump_pkg_files(info);
|
||||||
|
}
|
||||||
|
if(!config->op_q_info && !config->op_q_list) {
|
||||||
|
MSG(NL, "%s %s\n", alpm_pkg_get_name(info),
|
||||||
|
alpm_pkg_get_version(info));
|
||||||
|
}
|
||||||
if(config->op_q_changelog) {
|
if(config->op_q_changelog) {
|
||||||
char changelog[PATH_MAX];
|
char changelog[PATH_MAX];
|
||||||
snprintf(changelog, PATH_MAX, "%s%s/%s/%s-%s/changelog",
|
snprintf(changelog, PATH_MAX, "%s%s/%s/%s-%s/changelog",
|
||||||
@ -268,16 +277,6 @@ int pacman_query(alpm_list_t *targets)
|
|||||||
alpm_pkg_get_name(info),
|
alpm_pkg_get_name(info),
|
||||||
alpm_pkg_get_version(info));
|
alpm_pkg_get_version(info));
|
||||||
dump_pkg_changelog(changelog, alpm_pkg_get_name(info));
|
dump_pkg_changelog(changelog, alpm_pkg_get_name(info));
|
||||||
} else if(config->op_q_info) {
|
|
||||||
dump_pkg_full(info, config->op_q_info);
|
|
||||||
} else if(config->op_q_list) {
|
|
||||||
dump_pkg_files(info);
|
|
||||||
} else if(config->op_q_orphans) {
|
|
||||||
if(alpm_pkg_get_requiredby(info) == NULL) {
|
|
||||||
MSG(NL, "%s %s\n", alpm_pkg_get_name(info), alpm_pkg_get_version(info));
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
MSG(NL, "%s %s\n", alpm_pkg_get_name(info), alpm_pkg_get_version(info));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user