From 968448c9cdd2583225cff015b43aeeb9d1c304da Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Wed, 23 May 2012 21:05:28 +0200 Subject: ZipIntaller: use file timestamp if version string is missing. Instead of using some arbitrary and not really useful string use the timestamp of the downloaded file if version string is provided by the caller. This also makes it possible to check if the downloaded file is actually a different one. Use it for manual and game file downloads, as this gives more reasonable values than using the date transmitted for daily (archived) build and as support for archived builds will be removed shortly. Change-Id: I0c751fabe7bb516edca93a5f73f077a611d4ef87 --- rbutil/rbutilqt/base/zipinstaller.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'rbutil/rbutilqt/base/zipinstaller.h') diff --git a/rbutil/rbutilqt/base/zipinstaller.h b/rbutil/rbutilqt/base/zipinstaller.h index cb154c03a8..e15bbcf783 100644 --- a/rbutil/rbutilqt/base/zipinstaller.h +++ b/rbutil/rbutilqt/base/zipinstaller.h @@ -41,8 +41,10 @@ public: void setUrl(QStringList url) { m_urllist = url; } void setLogSection(QString name) {m_loglist = QStringList(name);} void setLogSection(QStringList name) { m_loglist = name; } - void setLogVersion(QString v) { m_verlist = QStringList(v); qDebug() << m_verlist;} - void setLogVersion(QStringList v) { m_verlist = v; qDebug() << m_verlist;} + void setLogVersion(QString v = "") + { m_verlist = QStringList(v); qDebug() << m_verlist;} + void setLogVersion(QStringList v) + { m_verlist = v; qDebug() << m_verlist;} void setUnzip(bool i) { m_unzip = i; } void setTarget(QString t) { m_target = t; } void setCache(QDir c) { m_cache = c; m_usecache = true; }; -- cgit v1.2.3