Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Repository are now typed (only REPO_BINARY_PKGS exists for now
Baptiste Daroussin committed 12 years ago
commit 72397428075e8df397c799516058b658ebec1563
parent cabdc52
3 files changed +6 -0
modified libpkg/pkg.h.in
@@ -283,6 +283,10 @@ typedef enum {
} pkg_list;

typedef enum {
+
	REPO_BINARY_PKGS,
+
} repo_t;
+

+
typedef enum {
	SRV,
	HTTP,
	NOMIRROR,
modified libpkg/pkg_config.c
@@ -1253,6 +1253,7 @@ pkg_repo_new(const char *name, const char *url)
	struct pkg_repo *r;

	r = calloc(1, sizeof(struct pkg_repo));
+
	r->type = REPO_BINARY_PKGS;
	r->url = subst_packagesite_str(url);
	r->signature_type = SIG_NONE;
	r->mirror_type = NOMIRROR;
modified libpkg/private/pkg.h
@@ -293,6 +293,7 @@ struct http_mirror {
};

struct pkg_repo {
+
	repo_t type;
	char *name;
	char *url;
	char *pubkey;