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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
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
Hide 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,
# Those entry points are development version and
# self updatable API
'slappkg-update-raw = slapos.package.update:do_update'
,
'slappkg-discover
-raw
= slapos.package.distribution:do_discover'
,
'slappkg-upload-key
-raw
= slapos.package.upload_key:main'
,
'slappkg-conf
-raw
= slapos.package.conf:do_conf'
,
'slappkg-discover = slapos.package.distribution:do_discover'
,
'slappkg-upload-key = slapos.package.upload_key:main'
,
'slappkg-conf = slapos.package.conf:do_conf'
,
'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
...
...
slapos/package/autoupdate.py
View file @
b7f08cdc
...
...
@@ -36,18 +36,9 @@ import os
import
subprocess
import
sys
def
do_discover
():
_run_command
(
'slappkg-discover-raw'
)
def
do_update
():
_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
):
if
'--no-update'
in
sys
.
argv
:
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