Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Do not warn twice (and incorrectly so) about the same issue in do_extract.
Gerald Pfeifer committed 12 years ago
commit fcd3ca370674f77026c3d8881ad6b8e75bca78a9
parent b000ac02b7ddeb8195525b2844eafe32a2fb49cf
1 file changed +3 -2
modified libpkg/pkg_add.c
@@ -66,7 +66,7 @@ do_extract(struct archive *a, struct archive_entry *ae)
				pkg_emit_error("archive_read_extract(): %s",
				    archive_error_string(a));
				retcode = EPKG_FATAL;
-
				break;
+
				goto cleanup;
			}
		}

@@ -86,7 +86,7 @@ do_extract(struct archive *a, struct archive_entry *ae)
				pkg_emit_error("archive_read_extract(): %s",
				    archive_error_string(a));
				retcode = EPKG_FATAL;
-
				break;
+
				goto cleanup;
			}
		}
	} while ((ret = archive_read_next_header(a, &ae)) == ARCHIVE_OK);
@@ -97,6 +97,7 @@ do_extract(struct archive *a, struct archive_entry *ae)
		retcode = EPKG_FATAL;
	}

+
cleanup:
	return (retcode);
}