revert change

This commit is contained in:
deathbybandaid 2019-05-04 21:08:54 -04:00
parent 2b48a14af2
commit 06fcb5dbdd

View File

@ -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__))