Commit Diff


commit - 0ab4c95723904e176687f5edc131bdf422dd261a
commit + eb7b30a1caf056832bec7619ececf88efa18f6bd
blob - fff58b083aa8eadb970ebd09ce593455d223fcc9
blob + f6f2cb6c69424d99e5cf161ab27dffb59b0546cc
--- lib/pack_create.c
+++ lib/pack_create.c
@@ -1656,7 +1656,7 @@ find_pack_for_enumeration(struct got_packidx **best_pa
 		}
 	}
 
-	if (best_packidx_path) {
+	if (best_packidx_path && err == NULL) {
 		err = got_repo_get_packidx(best_packidx, best_packidx_path,
 		    repo);
 	}