Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pacman/package.c3
-rw-r--r--src/pacman/query.c7
2 files changed, 8 insertions, 2 deletions
diff --git a/src/pacman/package.c b/src/pacman/package.c
index 2e2eec91..caaed462 100644
--- a/src/pacman/package.c
+++ b/src/pacman/package.c
@@ -86,7 +86,8 @@ void dump_pkg_full(pmpkg_t *pkg, int level)
}
list_display(_("Conflicts With :"), alpm_pkg_get_conflicts(pkg));
list_display(_("Replaces :"), alpm_pkg_get_replaces(pkg));
- printf(_("Installed Size : %6.2f K\n"), (float)alpm_pkg_get_size(pkg) / 1024.0);
+ printf(_("Installed Size : %6.2f K\n"),
+ (float)alpm_pkg_get_isize(pkg) / 1024.0);
printf(_("Packager : %s\n"), (char *)alpm_pkg_get_packager(pkg));
printf(_("Architecture : %s\n"), (char *)alpm_pkg_get_arch(pkg));
printf(_("Build Date : %s\n"), bdatestr);
diff --git a/src/pacman/query.c b/src/pacman/query.c
index ed48799c..9ede00ab 100644
--- a/src/pacman/query.c
+++ b/src/pacman/query.c
@@ -280,7 +280,12 @@ static int filter(pmpkg_t *pkg)
static void display(pmpkg_t *pkg)
{
if(config->op_q_info) {
- dump_pkg_full(pkg, config->op_q_info);
+ if(config->op_q_isfile) {
+ /* omit info that isn't applicable for a file package */
+ dump_pkg_full(pkg, 0);
+ } else {
+ dump_pkg_full(pkg, config->op_q_info);
+ }
}
if(config->op_q_list) {
dump_pkg_files(pkg);