Earlier a prompt “Continue operation? (y, n, s, d)” was used only with a temporary buffer for package operations and there were no problems with modifying a mode-line there. But now (I mean after the next patch) it is also used to prompt before building a source derivation (as "substitutes" and "dry-run" make sence there too). This patch will handle this case.