Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix the debug output to show correctly whether it's a repo schema upgrade or downgrade
Matthew Seaman committed 12 years ago
commit d7d83997012556c4b68e7a72272a96c59ccff1c8
parent b9f7bae
1 file changed +2 -2
modified libpkg/pkgdb_repo.c
@@ -775,7 +775,7 @@ upgrade_repo_schema(struct pkgdb *db, const char *database, int current_version)
	for (version = current_version;
	     version < REPO_SCHEMA_VERSION;
	     version = next_version)  {
-
		pkg_debug(1, "Upgrading remote database from %d to %d",
+
		pkg_debug(1, "Upgrading repo database schema from %d to %d",
		    version, next_version);
		ret = apply_repo_change(db, database, repo_upgrades,
					"upgrade", version, &next_version);
@@ -795,7 +795,7 @@ downgrade_repo_schema(struct pkgdb *db, const char *database, int current_versio
	for (version = current_version;
	     version > REPO_SCHEMA_VERSION;
	     version = next_version)  {
-
		pkg_debug(1, "Upgrading remote database from %d to %d",
+
		pkg_debug(1, "Downgrading repo database schema from %d to %d",
		    version, next_version);
		ret = apply_repo_change(db, database, repo_downgrades,
					"downgrade", version, &next_version);