mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Remove archive after extraction
This commit is contained in:
parent
cb17eca3a4
commit
dd5bb6890e
@ -212,6 +212,19 @@ namespace MediaBrowser.Installer
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
ExtractPackage(archive);
|
ExtractPackage(archive);
|
||||||
|
// We're done with it so delete it (this is necessary for update operations)
|
||||||
|
try
|
||||||
|
{
|
||||||
|
File.Delete(archive);
|
||||||
|
}
|
||||||
|
catch (FileNotFoundException)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
|
||||||
|
SystemClose("Error Removing Archive - " + e.GetType().FullName + "\n\n" + e.Message);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user