Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Only load categories and licenses when required.
jlaffaye committed 14 years ago
commit 072c6a21ebcbc68e23c82181d635b5bb40da2b35
parent 3989def
1 file changed +4 -3
modified pkg/info.c
@@ -3,12 +3,12 @@
#include <err.h>
#include <inttypes.h>
#include <libutil.h>
-
#include <unistd.h>
-
#include <stdio.h>
-
#include <stdbool.h>
#include <pkg.h>
+
#include <stdbool.h>
+
#include <stdio.h>
#include <string.h>
#include <sysexits.h>
+
#include <unistd.h>

#include "info.h"

@@ -183,6 +183,7 @@ exec_info(int argc, char **argv)
				break;
			case 'f':
				opt |= INFO_FULL;
+
				query_flags |= PKG_LOAD_CATEGORIES|PKG_LOAD_LICENSES;
				break;
			default:
				usage_info();