forked from gentoo-utils/gentoo-utils
14 lines
279 B
Python
Executable File
14 lines
279 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
import sys
|
|
from portage.dep import Atom
|
|
|
|
for line in sys.stdin.buffer:
|
|
try:
|
|
Atom(line.decode().strip())
|
|
sys.stdout.buffer.write(b"0\n")
|
|
except:
|
|
sys.stdout.buffer.write(b"1\n")
|
|
finally:
|
|
sys.stdout.buffer.flush()
|