Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
version: snap should be after alpha
Emmanuel Vadot committed 2 years ago
commit 507aaa80158b81a9065a978cb0b52820e89db722
parent 884ebbf
2 files changed +2 -2
modified libpkg/pkg_version.c
@@ -150,7 +150,7 @@ static const struct stage {
	int value;
} stages[] = {
	{ "pl",    2,  0            },
-
	{ "snap",  4,  1            },
+
	{ "snap",  6,  1            },
#define	ABASE	2	/* Last special early-sorted prefix + 1 */
	{ "alpha", 5, 'a'-'a'+ABASE },
	{ "beta",  4, 'b'-'a'+ABASE },
modified tests/frontend/version.sh
@@ -19,7 +19,7 @@ version_body() {
	atf_check -o inline:"<\n" -s exit:0 pkg version -t 1.rc1 1

	atf_check -o inline:"<\n" -s exit:0 pkg version -t 1.pl1 1.snap1
-
	atf_check -o inline:"<\n" -s exit:0 pkg version -t 1.snap1 1.alpha1
+
	atf_check -o inline:">\n" -s exit:0 pkg version -t 1.snap1 1.alpha1
}

compare_body() {