mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 06:59:53 -05:00
Add logging output
This commit is contained in:
parent
ca18e6a97b
commit
7107ee6e98
@ -352,6 +352,8 @@ def spicebot_update(bot, deps=False):
|
|||||||
if not os.path.exists(clonepath) or not os.path.isdir(clonepath):
|
if not os.path.exists(clonepath) or not os.path.isdir(clonepath):
|
||||||
os.system(clonepath)
|
os.system(clonepath)
|
||||||
|
|
||||||
|
bot_logging(bot, 'SpiceBot_Update', "Cloning to " + clonepath)
|
||||||
|
|
||||||
clone_repository(str(bot.config.SpiceBot_Update.gitrepo + ".git"), clonepath, checkout_branch=bot.config.SpiceBot_Update.gitbranch)
|
clone_repository(str(bot.config.SpiceBot_Update.gitrepo + ".git"), clonepath, checkout_branch=bot.config.SpiceBot_Update.gitbranch)
|
||||||
|
|
||||||
pipcommand = "sudo pip3 install --upgrade"
|
pipcommand = "sudo pip3 install --upgrade"
|
||||||
@ -361,11 +363,13 @@ def spicebot_update(bot, deps=False):
|
|||||||
# pipcommand += " git+" + str(bot.config.SpiceBot_Update.gitrepo) + "@" + str(bot.config.SpiceBot_Update.gitbranch)
|
# pipcommand += " git+" + str(bot.config.SpiceBot_Update.gitrepo) + "@" + str(bot.config.SpiceBot_Update.gitbranch)
|
||||||
pipcommand += " /tmp/SpiceBot/"
|
pipcommand += " /tmp/SpiceBot/"
|
||||||
|
|
||||||
# bot_logging(bot, 'SpiceBot_Update', "Running `" + pipcommand + "`")
|
bot_logging(bot, 'SpiceBot_Update', "Running `" + pipcommand + "`")
|
||||||
# for line in os.popen(pipcommand).read().split('\n'):
|
# for line in os.popen(pipcommand).read().split('\n'):
|
||||||
# bot_logging(bot, 'SpiceBot_Update', " " + line)
|
# bot_logging(bot, 'SpiceBot_Update', " " + line)
|
||||||
os.system(pipcommand)
|
os.system(pipcommand)
|
||||||
|
|
||||||
|
bot_logging(bot, 'SpiceBot_Update', "Deleting " + clonepath)
|
||||||
|
|
||||||
os.system("sudo rm -r /tmp/SpiceBot")
|
os.system("sudo rm -r /tmp/SpiceBot")
|
||||||
|
|
||||||
stock_modules_begone(bot)
|
stock_modules_begone(bot)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user