mirror of
https://github.com/vale981/melpazoid
synced 2025-03-06 01:41:38 -05:00
invoke debugger on KeyboardInterrupt inside _check_loop()
This commit is contained in:
parent
abf5b0c412
commit
23c821feda
1 changed files with 13 additions and 9 deletions
|
@ -20,6 +20,7 @@ import glob
|
|||
import json
|
||||
import operator
|
||||
import os
|
||||
import pdb
|
||||
import re
|
||||
import shlex
|
||||
import shutil
|
||||
|
@ -843,15 +844,18 @@ def _package_build_files() -> Dict[str, str]:
|
|||
|
||||
def _check_loop() -> None:
|
||||
"""Check MELPA recipes and pull requests in a loop."""
|
||||
for target in _fetch_targets():
|
||||
print(f"Checking {target}")
|
||||
if is_recipe(target):
|
||||
check_melpa_recipe(target)
|
||||
elif re.match(MELPA_PR, target):
|
||||
check_melpa_pr(target)
|
||||
if _return_code() != 0:
|
||||
_fail('<!-- This PR failed -->')
|
||||
print('-' * 79)
|
||||
while True:
|
||||
try:
|
||||
for target in _fetch_targets():
|
||||
if is_recipe(target):
|
||||
check_melpa_recipe(target)
|
||||
elif re.match(MELPA_PR, target):
|
||||
check_melpa_pr(target)
|
||||
if _return_code() != 0:
|
||||
_fail('<!-- Errors detected -->')
|
||||
print('-' * 79)
|
||||
except KeyboardInterrupt:
|
||||
pdb.set_trace() # pylint: disable=forgotten-debug-statement
|
||||
|
||||
|
||||
def _fetch_targets() -> Iterator[str]:
|
||||
|
|
Loading…
Add table
Reference in a new issue