Skip to content

Commit

Permalink
downloader: delete resume data after installation
Browse files Browse the repository at this point in the history
  • Loading branch information
blastrock committed Jul 16, 2018
1 parent 17146cd commit 9c63015
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/downloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ void Downloader::do_download(const DownloadItem& item)
pkgi_install_pspgame(item.partition.c_str(), item.content.c_str());
break;
}
pkgi_rm(fmt::format("{}pkgi/{}", item.partition, item.content).c_str());
pkgi_rm(fmt::format("{}pkgi/{}.resume", item.partition, item.content)
.c_str());
pkgi_delete_dir(fmt::format("{}pkgi/{}", item.partition, item.content));
LOG("install of %s completed!", item.name.c_str());
}

0 comments on commit 9c63015

Please sign in to comment.