diff options
author | sobomax <sobomax@FreeBSD.org> | 2000-07-07 13:06:32 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2000-07-07 13:06:32 +0000 |
commit | 30c9e3b784694031bf161baa87b1d79e24a009e3 (patch) | |
tree | a6b762aace5d250333bd3379d574900d50de041d /usr.sbin/pkg_install/info/perform.c | |
parent | 1fcab4244d72f94a49fd8023d9fc08a69976dd2f (diff) | |
download | FreeBSD-src-30c9e3b784694031bf161baa87b1d79e24a009e3.zip FreeBSD-src-30c9e3b784694031bf161baa87b1d79e24a009e3.tar.gz |
New option "-s" to query size of the installed package(s).
PR: 19445
Submitted by: sobomax
Reviewed by: knu
Approved by: silence
Diffstat (limited to 'usr.sbin/pkg_install/info/perform.c')
-rw-r--r-- | usr.sbin/pkg_install/info/perform.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/pkg_install/info/perform.c b/usr.sbin/pkg_install/info/perform.c index f89e031..cbcb3d9 100644 --- a/usr.sbin/pkg_install/info/perform.c +++ b/usr.sbin/pkg_install/info/perform.c @@ -201,6 +201,8 @@ pkg_do(char *pkg) show_plist("Prefix(s):\n", &plist, PLIST_CWD); if (Flags & SHOW_FILES) show_files("Files:\n", &plist); + if ((Flags & SHOW_SIZE) && installed) + show_size("Package Size:\n", &plist); if (!Quiet) puts(InfoPrefix); } |