Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
taste-setup
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TASTE
taste-setup
Commits
1b11e154
Commit
1b11e154
authored
Oct 05, 2017
by
Maxime Perrotin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve check-deployment-target
document the manual installation using docstrings
parent
e7dfa1e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
misc/helper-scripts/check-deployment-target-gui.py
misc/helper-scripts/check-deployment-target-gui.py
+9
-8
No files found.
misc/helper-scripts/check-deployment-target-gui.py
View file @
1b11e154
...
...
@@ -7,6 +7,7 @@ from PySide.QtGui import (QApplication,
QMessageBox
)
def
install_gr740_rtems410_gaisler_posix
():
""" $ /home/taste/tool-src/add-ons/install-gaisler """
print
'Installing this nice target'
def
check_gr740_rtems410_gaisler_posix
():
...
...
@@ -37,14 +38,7 @@ def query_user(platform):
msg_box
.
setIcon
(
QMessageBox
.
Warning
)
msg_box
.
setText
(
"Do you want to install target
\n
{} ?"
.
format
(
platform
))
msg_box
.
exec_
()
if
msg_box
.
clickedButton
()
==
ok
:
return
True
else
:
warn_box
=
QMessageBox
()
warn_box
.
setIcon
(
QMessageBox
.
Information
)
warn_box
.
setText
(
"You can install the platform later, manually"
)
warn_box
.
exec_
()
return
False
return
msg_box
.
clickedButton
()
==
ok
def
main
():
app
=
QApplication
(
sys
.
argv
)
...
...
@@ -64,6 +58,13 @@ def main():
install_it
,
=
exc
.
args
if
query_user
(
platform
):
install_it
()
else
:
warn_box
=
QMessageBox
()
warn_box
.
setIcon
(
QMessageBox
.
Information
)
warn_box
.
setText
(
"You can install the platform later by typing:
\n
"
+
str
(
install_it
.
__doc__
))
warn_box
.
exec_
()
else
:
print
(
"Platform {} is installed"
.
format
(
platform
))
sys
.
exit
(
0
)
...
...
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