Commit b7f08cdc authored by Rafael Monnerat's avatar Rafael Monnerat

slapos.package: Only automatic update when update

parent adae33cf
......@@ -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
......
......@@ -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')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment