summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/install.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/install.cpp')
-rw-r--r--rbutil/rbutilqt/install.cpp21
1 files changed, 8 insertions, 13 deletions
diff --git a/rbutil/rbutilqt/install.cpp b/rbutil/rbutilqt/install.cpp
index 099575fec4..e410222636 100644
--- a/rbutil/rbutilqt/install.cpp
+++ b/rbutil/rbutilqt/install.cpp
@@ -103,27 +103,17 @@ void Install::accept()
103 QString myversion; 103 QString myversion;
104 QString buildname = RbSettings::value(RbSettings::CurBuildserverModel).toString(); 104 QString buildname = RbSettings::value(RbSettings::CurBuildserverModel).toString();
105 if(ui.radioStable->isChecked()) { 105 if(ui.radioStable->isChecked()) {
106 file = QString("%1/%2/rockbox-%3-%4.zip") 106 file = RbSettings::value(RbSettings::ReleaseUrl).toString();
107 .arg(RbSettings::value(RbSettings::ReleaseUrl).toString(), version.value("rel_rev"),
108 buildname, version.value("rel_rev"));
109 fileName = QString("rockbox-%1-%2.zip")
110 .arg(version.value("rel_rev"), buildname);
111 RbSettings::setValue(RbSettings::Build, "stable"); 107 RbSettings::setValue(RbSettings::Build, "stable");
112 myversion = version.value("rel_rev"); 108 myversion = version.value("rel_rev");
113 } 109 }
114 else if(ui.radioArchived->isChecked()) { 110 else if(ui.radioArchived->isChecked()) {
115 file = QString("%1%2/rockbox-%3-%4.zip") 111 file = RbSettings::value(RbSettings::DailyUrl).toString();
116 .arg(RbSettings::value(RbSettings::DailyUrl).toString(),
117 buildname, buildname, version.value("arch_date"));
118 fileName = QString("rockbox-%1-%2.zip")
119 .arg(buildname, version.value("arch_date"));
120 RbSettings::setValue(RbSettings::Build, "archived"); 112 RbSettings::setValue(RbSettings::Build, "archived");
121 myversion = "r" + version.value("arch_rev") + "-" + version.value("arch_date"); 113 myversion = "r" + version.value("arch_rev") + "-" + version.value("arch_date");
122 } 114 }
123 else if(ui.radioCurrent->isChecked()) { 115 else if(ui.radioCurrent->isChecked()) {
124 file = QString("%1%2/rockbox.zip") 116 file = RbSettings::value(RbSettings::BleedingUrl).toString();
125 .arg(RbSettings::value(RbSettings::BleedingUrl).toString(), buildname);
126 fileName = QString("rockbox.zip");
127 RbSettings::setValue(RbSettings::Build, "current"); 117 RbSettings::setValue(RbSettings::Build, "current");
128 myversion = "r" + version.value("bleed_rev"); 118 myversion = "r" + version.value("bleed_rev");
129 } 119 }
@@ -131,6 +121,11 @@ void Install::accept()
131 qDebug() << "[Install] no build selected -- this shouldn't happen"; 121 qDebug() << "[Install] no build selected -- this shouldn't happen";
132 return; 122 return;
133 } 123 }
124 file.replace("%MODEL%", buildname);
125 file.replace("%RELVERSION%", version.value("rel_rev"));
126 file.replace("%REVISION%", version.value("arch_rev"));
127 file.replace("%DATE%", version.value("arch_date"));
128
134 RbSettings::sync(); 129 RbSettings::sync();
135 130
136 QString warning = Detect::check(false); 131 QString warning = Detect::check(false);