Skip to content

Commit 9967b58

Browse files
committed
Silence SHORT_DESC pipe warning for external kos-ports Makefiles
The warning about | in SHORT_DESC is useless for end users since kos-ports is an external repo they cannot modify. Silently sanitize.
1 parent a0bf530 commit 9967b58

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

scripts/engine/py/core/manifest.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,7 @@ def parse_port_makefile(path: Path) -> Optional[Manifest]:
106106
match_desc = re.search(r'^SHORT_DESC\s*=\s*(.*)$', content, re.MULTILINE)
107107
if match_desc:
108108
short_desc = match_desc.group(1).strip()
109-
if '|' in short_desc:
110-
print(f"Warning: SHORT_DESC for '{lib_name}' contains '|' character (will be replaced)", file=sys.stderr)
111-
short_desc = short_desc.replace('|', ' ')
109+
short_desc = short_desc.replace('|', ' ')
112110

113111
# Extract more technical fields for updates
114112
version = "unknown"

0 commit comments

Comments
 (0)