Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix 'pkg update' when working in single repo
Marin Atanasov Nikolov committed 14 years ago
commit 8f101162ff637bf8ea8bedd3c41f11adae71d1b3
parent 8a63f25
1 file changed +1 -1
modified pkg/update.c
@@ -117,7 +117,7 @@ exec_update(int argc, char **argv)
	 */
	multirepos_enabled = pkg_config("PKG_MULTIREPOS");

-
	if (multirepos_enabled && (strcasecmp(multirepos_enabled, "yes") != 0)) {
+
	if ((multirepos_enabled == NULL) || (strcasecmp(multirepos_enabled, "yes") != 0)) {
		/*
		 * Single remote database
		 */