From a10d58d3e531befcbfe9d23a77e29223bfba639e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sun, 22 Jan 2023 15:50:44 +0700 Subject: [PATCH] LGOGDownloader: remove renamed patches --- .../patches/Fix-coredump-with-new-curl.patch | 43 ------------------- 1 file changed, 43 deletions(-) delete mode 100644 srcpkgs/LGOGDownloader/patches/Fix-coredump-with-new-curl.patch diff --git a/srcpkgs/LGOGDownloader/patches/Fix-coredump-with-new-curl.patch b/srcpkgs/LGOGDownloader/patches/Fix-coredump-with-new-curl.patch deleted file mode 100644 index c836a8f8584..00000000000 --- a/srcpkgs/LGOGDownloader/patches/Fix-coredump-with-new-curl.patch +++ /dev/null @@ -1,43 +0,0 @@ -Force destruction of downloader before curl_global_cleanup -See: https://github.com/Sude-/lgogdownloader/commit/6ce6aeb1dc06f8af1508c5ce6ee71775b8d188b3 -Index: LGOGDownloader-3.9/main.cpp -=================================================================== ---- LGOGDownloader-3.9.orig/main.cpp -+++ LGOGDownloader-3.9/main.cpp -@@ -607,9 +607,10 @@ int main(int argc, char *argv[]) - std::cerr << std::endl; - } - -+ int res = 0; - // Init curl globally - curl_global_init(CURL_GLOBAL_ALL); -- -+ { - Downloader downloader; - - int iLoginTries = 0; -@@ -733,12 +734,10 @@ int main(int argc, char *argv[]) - bool bInitOK = downloader.init(); - if (!bInitOK) - { -- curl_global_cleanup(); -- return 1; -+ res = 1; -+ goto end; - } - -- int res = 0; -- - if (Globals::globalConfig.bShowWishlist) - downloader.showWishlist(); - else if (Globals::globalConfig.bUpdateCache) -@@ -801,7 +800,8 @@ int main(int argc, char *argv[]) - // Orphan check was called at the same time as download. Perform it after download has finished - if (!Globals::globalConfig.sOrphanRegex.empty() && Globals::globalConfig.bDownload) - downloader.checkOrphans(); -- -+ } -+end: - curl_global_cleanup(); - - return res;