Commit 3f128ddf authored by Lisa's avatar Lisa

Correct status_succes to status_success, and add status_warning.

parent 96af578a
......@@ -118,12 +118,14 @@ def status_start(mesg):
print ("\033[1;32m ::\033[1;0m\033[1;0m %s\033[1;0m" % mesg)
newline()
def status_succes():
def status_success():
print ("\033[1;32m ::SUCCESS:: \033[1;0m")
def status_error():
print ("\033[1;31m ::ERROR:: \033[1;0m")
def status_warning():
print ("\033[1;33m ::WARNING:: \033[1;0m")
def command_parse(config_opts):
"""return options and args from parsing the command line"""
......@@ -275,7 +277,7 @@ def do_add_pkg(options, dbname, arch, pkgs):
#Todo:
# sign database with current user key
status_succes()
status_success()
#decorate(traceLog())
def do_remove_pkg(options, dbname, arch, pkgs):
......@@ -303,7 +305,7 @@ def do_remove_pkg(options, dbname, arch, pkgs):
#create_signature(dbpath + AKABEI_DB_EXT)
setchown(dbname, dbpath + AKABEI_DB_EXT + ".sig")
status_succes()
status_success()
# internal function
def _move_pkg(options, dbsrcName, dbdestName, arch, pkgs):
......@@ -408,7 +410,7 @@ def do_move_pkg(options, dbsrcName, dbdestName, arch, pkgs):
do_unlock_db(options, dbsrcName, arch)
if not options.dryrun:
status_succes()
status_success()
#decorate(traceLog())
def do_clean_db(options, dbname, arch):
......@@ -425,7 +427,7 @@ def do_clean_db(options, dbname, arch):
else:
call(["akabei-clean-repo", "-d", dbpath])
status_succes()
status_success()
#decorate(traceLog())
def do_lock_db(options, dbname, arch):
......@@ -435,7 +437,7 @@ def do_lock_db(options, dbname, arch):
# let's lock the file
databaselock(dbpath + ".lock")
status_succes()
status_success()
#decorate(traceLog())
def do_unlock_db(options, dbname, arch):
......
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