Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Rename local_pkg to pkg
Baptiste Daroussin committed 12 years ago
commit 4de650288c4a0ad94aec3050c1e79e288a384319
parent 3847d4a
1 file changed +3 -3
modified libpkg/update.c
@@ -433,7 +433,7 @@ pkg_update_incremental(const char *name, struct pkg_repo *repo, time_t *mtime)
{
	FILE *fmanifest = NULL, *fdigests = NULL;
	sqlite3 *sqlite = NULL;
-
	struct pkg *local_pkg = NULL;
+
	struct pkg *pkg = NULL;
	int rc = EPKG_FATAL;
	const char *origin, *digest, *offset;
	struct pkgdb_it *it = NULL;
@@ -464,8 +464,8 @@ pkg_update_incremental(const char *name, struct pkg_repo *repo, time_t *mtime)
		goto cleanup;
	}

-
	while (pkgdb_it_next(it, &local_pkg, PKG_LOAD_BASIC) == EPKG_OK) {
-
		pkg_get(local_pkg, PKG_ORIGIN, &origin, PKG_DIGEST, &digest);
+
	while (pkgdb_it_next(it, &pkg, PKG_LOAD_BASIC) == EPKG_OK) {
+
		pkg_get(pkg, PKG_ORIGIN, &origin, PKG_DIGEST, &digest);
		pkg_update_increment_item_new(&ldel, origin, digest, 4);
	}