Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
agent
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
simmctic
agent
Commits
7af43ae1
There was a problem fetching the pipeline summary.
Commit
7af43ae1
authored
7 years ago
by
Lais Frigério
Browse files
Options
Downloads
Patches
Plain Diff
SCRUM#87
- Get distro info on windows
parent
cdd6789b
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/agent/get_distro.cpp
+4
-9
4 additions, 9 deletions
src/agent/get_distro.cpp
with
4 additions
and
9 deletions
src/agent/get_distro.cpp
+
4
−
9
View file @
7af43ae1
...
...
@@ -149,14 +149,8 @@ std::string get_distro() {
#ifdef WIN32
/** Get Windows version */
<<<<<<<
HEAD
std
::
string
get_winver
()
{
std
::
string
version_name
;
std
::
string
line
;
=======
std
::
string
get_distro_win
()
{
std
::
string
version_name
,
line
,
cmd
;
>>>>>>>
3
a78785
...
SCRUM
#
87
-
Get
distro
info
on
windows
if
(
IsWindowsVistaOrGreater
())
{
try
{
cmd
=
exec
(
"systeminfo"
);
...
...
@@ -178,15 +172,16 @@ std::string get_distro_win() {
}
}
else
if
(
!
IsWindowsXPSP1OrGreater
())
{
return
version_name
.
assign
(
"Windows XP"
);
if
(
!
IsWindowsXPSP2OrGreater
())
}
else
if
(
!
IsWindowsXPSP2OrGreater
())
{
return
version_name
.
assign
(
"Windows XP SP1"
);
if
(
!
IsWindowsXPSP3OrGreater
())
}
else
if
(
!
IsWindowsXPSP3OrGreater
())
{
return
version_name
.
assign
(
"Windows XP SP2"
);
if
(
!
IsWindowsVistaOrGreater
())
}
else
if
(
!
IsWindowsVistaOrGreater
())
{
return
version_name
.
assign
(
"Windows XP SP3"
);
}
else
{
throw
std
::
string
(
"unknown distro"
);
}
throw
std
::
string
(
"unknown distro"
);
}
#endif // WIN32
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment