Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Carlos Ramos Carreño
slapos.package
Commits
b7f08cdc
Commit
b7f08cdc
authored
Jul 11, 2014
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos.package: Only automatic update when update
parent
adae33cf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
15 deletions
+3
-15
setup.py
setup.py
+3
-6
slapos/package/autoupdate.py
slapos/package/autoupdate.py
+0
-9
No files found.
setup.py
View file @
b7f08cdc
...
@@ -29,13 +29,10 @@ setup(name=name,
...
@@ -29,13 +29,10 @@ setup(name=name,
# Those entry points are development version and
# Those entry points are development version and
# self updatable API
# self updatable API
'slappkg-update-raw = slapos.package.update:do_update'
,
'slappkg-update-raw = slapos.package.update:do_update'
,
'slappkg-discover
-raw
= slapos.package.distribution:do_discover'
,
'slappkg-discover = slapos.package.distribution:do_discover'
,
'slappkg-upload-key
-raw
= slapos.package.upload_key:main'
,
'slappkg-upload-key = slapos.package.upload_key:main'
,
'slappkg-conf
-raw
= slapos.package.conf:do_conf'
,
'slappkg-conf = slapos.package.conf:do_conf'
,
'slappkg-update = slapos.package.autoupdate:do_update'
,
'slappkg-update = slapos.package.autoupdate:do_update'
,
'slappkg-discover = slapos.package.autoupdate:do_discover'
,
'slappkg-upload-key = slapos.package.autoupdate:do_upload'
,
'slappkg-conf = slapos.package.autoupdate:do_conf'
,
],
],
# Not supported yet
# Not supported yet
...
...
slapos/package/autoupdate.py
View file @
b7f08cdc
...
@@ -36,18 +36,9 @@ import os
...
@@ -36,18 +36,9 @@ import os
import
subprocess
import
subprocess
import
sys
import
sys
def
do_discover
():
_run_command
(
'slappkg-discover-raw'
)
def
do_update
():
def
do_update
():
_run_command
(
'slappkg-update-raw'
)
_run_command
(
'slappkg-update-raw'
)
def
do_upload
():
_run_command
(
'slappkg-upload-key-raw'
)
def
do_conf
():
_run_command
(
'slappkg-conf-raw'
)
def
_run_command
(
command
):
def
_run_command
(
command
):
if
'--no-update'
in
sys
.
argv
:
if
'--no-update'
in
sys
.
argv
:
sys
.
argv
.
remove
(
'--no-update'
)
sys
.
argv
.
remove
(
'--no-update'
)
...
...
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