a tiny amount of oops

This commit is contained in:
kawaiizenbo 2021-10-17 22:18:24 -07:00
parent dfc90b75d0
commit 7d5fe62852

View file

@ -5,9 +5,7 @@ using RepoFullDownloader;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics;
using System.IO; using System.IO;
using System.Linq;
using System.Net; using System.Net;
using System.Text.Json; using System.Text.Json;
using System.Threading; using System.Threading;
@ -115,7 +113,7 @@ namespace RepoFullDownloader_Core
webClient.DownloadFile(new Uri(link + "Packages.gz"), "Packages.gz"); webClient.DownloadFile(new Uri(link + "Packages.gz"), "Packages.gz");
FileStream packagesGz = new FileInfo("Packages.gz").OpenRead(); FileStream packagesGz = new FileInfo("Packages.gz").OpenRead();
FileStream packagesGzDecompressed = File.Create("Packages"); FileStream packagesGzDecompressed = File.Create("Packages");
BZip2.Decompress(packagesGz, packagesGzDecompressed, true); GZip.Decompress(packagesGz, packagesGzDecompressed, true);
} }
catch (Exception _e) catch (Exception _e)
{ {