diff options
Diffstat (limited to 'src/debputy/debhelper_emulation.py')
-rw-r--r-- | src/debputy/debhelper_emulation.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/debputy/debhelper_emulation.py b/src/debputy/debhelper_emulation.py index 65a26f8..8242a32 100644 --- a/src/debputy/debhelper_emulation.py +++ b/src/debputy/debhelper_emulation.py @@ -243,13 +243,16 @@ _FIND_DH_WITH = re.compile(r"--with(?:\s+|=)(\S+)") _DEP_REGEX = re.compile("^([a-z0-9][-+.a-z0-9]+)", re.ASCII) -def parse_drules_for_addons(lines: Iterable[str], sequences: Set[str]) -> None: +def parse_drules_for_addons(lines: Iterable[str], sequences: Set[str]) -> bool: + saw_dh = False for line in lines: if not line.startswith("\tdh "): continue + saw_dh = True for match in _FIND_DH_WITH.finditer(line): sequence_def = match.group(1) sequences.update(sequence_def.split(",")) + return saw_dh def extract_dh_addons_from_control( |