summaryrefslogtreecommitdiffstats
path: root/src/sdk
diff options
context:
space:
mode:
authorTim Jenssen <tim.jenssen@nokia.com>2012-04-27 14:04:26 +0200
committerTim Jenssen <tim.jenssen@nokia.com>2012-04-27 16:23:29 +0200
commit29cf8564aa4c2ca9c839b47658e532015444ce58 (patch)
tree9c57e9bb1ef66c763351ebd79ed0a5297d4cbf71 /src/sdk
parent0a8755ace26f1174e9ed99e5060c4d8da0ba010d (diff)
now we can setTempRepositories from script side
- this makes testing with autoscript more convenient Change-Id: I93e25570cd9f2b1431412a601476947fc9a046d9 Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
Diffstat (limited to 'src/sdk')
-rw-r--r--src/sdk/installerbase.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/sdk/installerbase.cpp b/src/sdk/installerbase.cpp
index e8d32d673..10932311a 100644
--- a/src/sdk/installerbase.cpp
+++ b/src/sdk/installerbase.cpp
@@ -70,19 +70,18 @@
using namespace QInstaller;
using namespace QInstallerCreator;
-static QSet<Repository> repositories(const QStringList &arguments, const int index)
+static QStringList repositories(const QStringList &arguments, const int index)
{
- QSet<Repository> set;
if (index < arguments.size()) {
QStringList items = arguments.at(index).split(QLatin1Char(','));
foreach (const QString &item, items) {
- set.insert(Repository(item, false));
qDebug() << "Adding custom repository:" << item;
}
+ return items;
} else {
std::cerr << "No repository specified" << std::endl;
}
- return set;
+ return QStringList();
}
// -- main
@@ -299,7 +298,7 @@ int main(int argc, char *argv[])
} else if (argument == QLatin1String("--addTempRepository")
|| argument == QLatin1String("--setTempRepository")) {
++i;
- QSet<Repository> repoList = repositories(args, i);
+ QStringList repoList = repositories(args, i);
if (repoList.isEmpty())
return PackageManagerCore::Failure;
@@ -309,7 +308,7 @@ int main(int argc, char *argv[])
core.setTemporaryRepositories(repoList, replace);
} else if (argument == QLatin1String("--addRepository")) {
++i;
- QSet<Repository> repoList = repositories(args, i);
+ QStringList repoList = repositories(args, i);
if (repoList.isEmpty())
return PackageManagerCore::Failure;
core.addUserRepositories(repoList);