File: providecheck

package info (click to toggle)
simple-cdd 0.6.9
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 344 kB
  • sloc: python: 1,904; sh: 111; makefile: 13
file content (15 lines) | stat: -rwxr-xr-x 373 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env python3

# given two lists, output entries in both lists

import sys

with open(sys.argv[1]) as fd_provides:
    provides = [ x.strip() for x in fd_provides.readlines() ]

with open(sys.argv[2]) as fd_packages:
    packages = [ x.strip() for x in fd_packages.readlines() ]

for package in packages:
    if provides.count(package) > 0:
        print(package)