Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Implement "UPDATING entry per port" functionality
Beat Gaetzi committed 14 years ago
commit 0f46b7ea9dd36179ccae50bba7d65d45b57c4100
parent 1df3265cbfb6499fed2f17569a14dba395e64993
1 file changed +6 -1
modified pkg/updating.c
@@ -105,7 +105,12 @@ exec_updating(int argc, char **argv)
			SLIST_INSERT_HEAD(&origins, port, next);
		}
	} else {
-
	/* TODO missing per port */
+
		while (*argv) {
+
			port = malloc(sizeof(struct installed_ports));
+
			port->origin = strdup(*argv);
+
			SLIST_INSERT_HEAD(&origins, port, next);
+
			(void)*argv++;
+
		}
	}

	if (updatingfile == NULL) {