Skip to content

Commit a8a0d3e

Browse files
committed
TooManyCrates: warn only for ::gentoo
Resolves: #752 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
1 parent 034010d commit a8a0d3e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pkgcheck/checks/rust.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def _verify_crates(self, pkg: bash.ParseTree):
6969
row, _ = val_node.start_point
7070
val_str = pkg.node_str(val_node).strip("'\"")
7171
crates = val_str.split()
72-
if len(crates) > 300:
72+
if len(crates) > 300 and self.options.gentoo_repo:
7373
yield TooManyCrates(count=len(crates), pkg=pkg)
7474
for lineno, line in enumerate(crates, start=row + 1):
7575
for token in line.split():

0 commit comments

Comments
 (0)