Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Johnson <[email protected]>
  • Loading branch information
colincornaby and Hoikas authored Jul 14, 2024
1 parent 1e4cb16 commit 7dc5c44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/Plasma/Apps/plClient/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ target_link_libraries(
CURL::libcurl
"$<$<PLATFORM_ID:Darwin>:-framework Cocoa>"
"$<$<PLATFORM_ID:Darwin>:-framework QuartzCore>"
$<$<PLATFORM_ID:Darwin>:LibArchive::LibArchive>
$<$<PLATFORM_ID:Darwin>:${LibArchive_LIBRARIES}>
)
target_include_directories(plClient PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")

Expand Down
4 changes: 2 additions & 2 deletions Sources/Plasma/Apps/plClient/Mac-Cocoa/PLSPatcher.mm
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,9 @@ static la_ssize_t copy_data(struct archive* ar, struct archive* aw)
auto fullOutputPath = plFileName::Join(outputPath, currentFile);
archive_entry_set_pathname(entry, fullOutputPath.AsString().c_str());
r = archive_write_header(ext, entry);
if (r < ARCHIVE_OK)
if (r < ARCHIVE_OK) {
pfPatcher::GetLog()->AddLineF(plStatusLog::kRed, "Failed to extract file while patching app bundle: {}", archive_error_string(ext));
else if (archive_entry_size(entry) > 0) {
} else if (archive_entry_size(entry) > 0) {
r = copy_data(a, ext);
if (r < ARCHIVE_OK)
pfPatcher::GetLog()->AddLineF(plStatusLog::kRed, "Failed to extract file while patching app bundle: {}", archive_error_string(ext));
Expand Down

0 comments on commit 7dc5c44

Please sign in to comment.