Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ssu
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
mer-core
ssu
Commits
7d2ebc53
Commit
7d2ebc53
authored
Oct 21, 2012
by
Aard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow adding arbitrary repository url variables in ssu.ini
parent
54f56a99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
libssu/ssu.cpp
libssu/ssu.cpp
+10
-0
No files found.
libssu/ssu.cpp
View file @
7d2ebc53
...
...
@@ -186,9 +186,19 @@ QString Ssu::release(bool rnd){
QString
Ssu
::
repoUrl
(
QString
repoName
,
bool
rndRepo
,
QHash
<
QString
,
QString
>
repoParameters
){
QString
r
;
QStringList
configSections
;
QStringList
repoVariables
;
errorFlag
=
false
;
// fill in all arbitrary variables from ssu.ini
settings
->
beginGroup
(
"repository-url-variables"
);
repoVariables
=
settings
->
allKeys
();
foreach
(
const
QString
&
key
,
repoVariables
){
repoParameters
.
insert
(
key
,
settings
->
value
(
key
).
toString
());
}
settings
->
endGroup
();
// add/overwrite some of the variables with sane ones
if
(
rndRepo
){
repoParameters
.
insert
(
"flavour"
,
repoSettings
->
value
(
flavour
()
+
"-flavour/flavour-pattern"
).
toString
());
repoParameters
.
insert
(
"release"
,
settings
->
value
(
"rndRelease"
).
toString
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment