Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
priorities: allow negative priorities
Baptiste Daroussin committed 8 months ago
commit 80f3d8a419a37e1dc162a90a309310fd4ff9a180
parent f37bdac
3 files changed +3 -3
modified libpkg/pkg.h.in
@@ -1550,7 +1550,7 @@ const char *pkg_repo_fingerprints(struct pkg_repo *r);
signature_t pkg_repo_signature_type(struct pkg_repo *r);
bool pkg_repo_enabled(struct pkg_repo *r);
mirror_t pkg_repo_mirror_type(struct pkg_repo *r);
-
unsigned pkg_repo_priority(struct pkg_repo *r);
+
int pkg_repo_priority(struct pkg_repo *r);
unsigned pkg_repo_ip_version(struct pkg_repo *r);
struct pkg_repo *pkg_repo_find(const char *name);
int pkg_repo_fetch_remote_tmp(struct pkg_repo *repo,
modified libpkg/pkg_config.c
@@ -1823,7 +1823,7 @@ pkg_repo_mirror_type(struct pkg_repo *r)
	return (r->mirror_type);
}

-
unsigned int
+
int
pkg_repo_priority(struct pkg_repo *r)
{
	return (r->priority);
modified src/utils.c
@@ -1209,7 +1209,7 @@ print_repository(struct pkg_repo *repo, bool pad)
	}

	printf("%s%s: { \n    %-16s: \"%s\",\n    %-16s: %s,\n"
-
			"    %-16s: %u",
+
			"    %-16s: %d",
			pad ? "  " : "",
			pkg_repo_name(repo),
			"url", pkg_repo_url(repo),