summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/base/zipinstaller.h
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2012-05-23 21:05:28 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2012-05-23 21:10:38 +0200
commit968448c9cdd2583225cff015b43aeeb9d1c304da (patch)
treea540f5733d60a649c1534a4c4ba00c2d8be619a3 /rbutil/rbutilqt/base/zipinstaller.h
parent5c36e2f21c13196cc0b6b34c8ee8149b0595bd82 (diff)
downloadrockbox-968448c9cdd2583225cff015b43aeeb9d1c304da.tar.gz
rockbox-968448c9cdd2583225cff015b43aeeb9d1c304da.zip
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
Diffstat (limited to 'rbutil/rbutilqt/base/zipinstaller.h')
-rw-r--r--rbutil/rbutilqt/base/zipinstaller.h6
1 files changed, 4 insertions, 2 deletions
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:
41 void setUrl(QStringList url) { m_urllist = url; } 41 void setUrl(QStringList url) { m_urllist = url; }
42 void setLogSection(QString name) {m_loglist = QStringList(name);} 42 void setLogSection(QString name) {m_loglist = QStringList(name);}
43 void setLogSection(QStringList name) { m_loglist = name; } 43 void setLogSection(QStringList name) { m_loglist = name; }
44 void setLogVersion(QString v) { m_verlist = QStringList(v); qDebug() << m_verlist;} 44 void setLogVersion(QString v = "")
45 void setLogVersion(QStringList v) { m_verlist = v; qDebug() << m_verlist;} 45 { m_verlist = QStringList(v); qDebug() << m_verlist;}
46 void setLogVersion(QStringList v)
47 { m_verlist = v; qDebug() << m_verlist;}
46 void setUnzip(bool i) { m_unzip = i; } 48 void setUnzip(bool i) { m_unzip = i; }
47 void setTarget(QString t) { m_target = t; } 49 void setTarget(QString t) { m_target = t; }
48 void setCache(QDir c) { m_cache = c; m_usecache = true; }; 50 void setCache(QDir c) { m_cache = c; m_usecache = true; };