forked from lix-project/lix
Remove #include
This commit is contained in:
parent
f5b7991e59
commit
04bf9acd22
|
@ -34,6 +34,10 @@ DownloadSettings downloadSettings;
|
||||||
|
|
||||||
static GlobalConfig::Register r1(&downloadSettings);
|
static GlobalConfig::Register r1(&downloadSettings);
|
||||||
|
|
||||||
|
CachedDownloadRequest::CachedDownloadRequest(const std::string & uri)
|
||||||
|
: uri(uri), ttl(settings.tarballTtl)
|
||||||
|
{ }
|
||||||
|
|
||||||
std::string resolveUri(const std::string & uri)
|
std::string resolveUri(const std::string & uri)
|
||||||
{
|
{
|
||||||
if (uri.compare(0, 8, "channel:") == 0)
|
if (uri.compare(0, 8, "channel:") == 0)
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
#include "types.hh"
|
#include "types.hh"
|
||||||
#include "hash.hh"
|
#include "hash.hh"
|
||||||
#include "globals.hh"
|
#include "config.hh"
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <future>
|
#include <future>
|
||||||
|
@ -71,10 +71,10 @@ struct CachedDownloadRequest
|
||||||
bool unpack = false;
|
bool unpack = false;
|
||||||
std::string name;
|
std::string name;
|
||||||
Hash expectedHash;
|
Hash expectedHash;
|
||||||
unsigned int ttl = settings.tarballTtl;
|
unsigned int ttl;
|
||||||
|
|
||||||
CachedDownloadRequest(const std::string & uri)
|
CachedDownloadRequest(const std::string & uri);
|
||||||
: uri(uri) { }
|
CachedDownloadRequest() = delete;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct CachedDownloadResult
|
struct CachedDownloadResult
|
||||||
|
|
Loading…
Reference in a new issue