mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-12 22:49:53 -05:00
revert change
This commit is contained in:
parent
2b48a14af2
commit
06fcb5dbdd
@ -68,14 +68,13 @@ def nickname_comand_chanstats(bot, trigger):
|
|||||||
|
|
||||||
def spicebot_update(bot, deps="False"):
|
def spicebot_update(bot, deps="False"):
|
||||||
|
|
||||||
"""
|
|
||||||
pipcommand = "sudo pip3 install --upgrade"
|
pipcommand = "sudo pip3 install --upgrade"
|
||||||
if deps == "False":
|
if deps == "False":
|
||||||
pipcommand += " --no-deps"
|
pipcommand += " --no-deps"
|
||||||
pipcommand += " --force-reinstall"
|
pipcommand += " --force-reinstall"
|
||||||
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 = ['install']
|
pipcommand = ['install']
|
||||||
pipcommand.append('--upgrade')
|
pipcommand.append('--upgrade')
|
||||||
if deps == "False":
|
if deps == "False":
|
||||||
@ -83,10 +82,11 @@ def spicebot_update(bot, deps="False"):
|
|||||||
pipcommand.append('--force-reinstall')
|
pipcommand.append('--force-reinstall')
|
||||||
pipcommand.append("git+" + str(bot.config.SpiceBot_Update.gitrepo) + "@" + str(bot.config.SpiceBot_Update.gitbranch))
|
pipcommand.append("git+" + str(bot.config.SpiceBot_Update.gitrepo) + "@" + str(bot.config.SpiceBot_Update.gitbranch))
|
||||||
pip.main(pipcommand)
|
pip.main(pipcommand)
|
||||||
|
"""
|
||||||
|
|
||||||
# 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)
|
||||||
|
|
||||||
# Remove stock modules, if present
|
# Remove stock modules, if present
|
||||||
main_sopel_dir = os.path.dirname(os.path.abspath(sopel.__file__))
|
main_sopel_dir = os.path.dirname(os.path.abspath(sopel.__file__))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user