Исправлена реакция на вопрос emerge
@ -321,7 +321,7 @@ class QuestionBlock(EmergeInformationBlock):
"""
Блок вопроса
default_answer = "no"
default_answer = "yes"
_color_block = EmergeInformationBlock._color_block
token = "Would you like"
end_token = ["]", "\n"]
@ -94,6 +94,10 @@ class Update:
git.checkoutBranch(rpath, branch)
if revision == "last":
if git.resetRepository(rpath, to_origin=True):
# если не удалось сбросить
repInfo = git.getStatusInfo(rpath)
if repInfo.get("files", False):
raise GitError("Failed to reset git")
needMeta = True
else:
git.resetRepository(rpath, to_rev=revision)