1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/usr/bin/env python
from os import path
import sys
import os
import time
import rfc822
abs = path.abspath(sys.argv[0])
base = path.dirname(path.dirname(abs))
sys.path += [ os.path.join(base, 'lib', 'python') ]
from sedot.report import Report
outdir = os.path.join(base, 'data', 'report')
packages = []
f = open(os.path.join(base, 'etc', 'report.pkgs'))
for line in f.readlines():
line = line.strip()
if len(line) > 0 and line[0] != '#':
packages.append(line)
report = Report(packages, outdir)
report.generate()
|