Updated addon repository URL and improved debug output on download master
authorIngo Ruhnke <grumbel@gmail.com>
Sun, 22 Mar 2015 14:56:16 +0000 (15:56 +0100)
committerIngo Ruhnke <grumbel@gmail.com>
Sun, 22 Mar 2015 15:53:21 +0000 (16:53 +0100)
src/addon/addon_manager.cpp
src/addon/downloader.cpp

index 43e1490..7266c3e 100644 (file)
@@ -84,7 +84,7 @@ AddonManager::AddonManager(const std::string& addon_directory,
                            std::vector<Config::Addon>& addon_config) :
   m_downloader(),
   m_addon_directory(addon_directory),
-  m_repository_url("http://addons.supertux.googlecode.com/git/index-0_4_0.nfo"),
+  m_repository_url("https://raw.githubusercontent.com/SuperTuxTeam/addons/master/index-0_4_0.nfo"),
   m_addon_config(addon_config),
   m_installed_addons(),
   m_repository_addons(),
index 7c51d84..905dd2b 100644 (file)
@@ -248,6 +248,7 @@ Downloader::download(const std::string& url)
 void
 Downloader::download(const std::string& url, const std::string& filename)
 {
+  log_info << "download: " << url << " to " << filename << std::endl;
   std::unique_ptr<PHYSFS_file, int(*)(PHYSFS_File*)> fout(PHYSFS_openWrite(filename.c_str()),
                                                           PHYSFS_close);
   download(url, my_curl_physfs_write, fout.get());
@@ -363,6 +364,7 @@ Downloader::update()
 TransferStatusPtr
 Downloader::request_download(const std::string& url, const std::string& outfile)
 {
+  log_info << "request_download: " << url << std::endl;
   std::unique_ptr<Transfer> transfer(new Transfer(*this, m_next_transfer_id++, url, outfile));
   curl_multi_add_handle(m_multi_handle, transfer->get_curl_handle());
   m_transfers.push_back(std::move(transfer));