blob: 2f1a3e91d3717beb76b79a990c8acdd180307559 (
plain)
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
29
30
31
32
33
34
35
36
37
38
39
40
|
#!/usr/bin/python
# Usage: descreader [desc_file...]
#
from __future__ import print_function
import sys
import roverlay.core
import roverlay.rpackage.descriptionreader
def setup():
roverlay.core.force_console_logging()
config_file = roverlay.core.locate_config_file ( False )
return roverlay.core.load_config_file (
config_file, setup_logger=False,
extraconf={
'installed': False,
'DESCRIPTION': { 'descfiles_dir': None, }
},
)
# --- end of setup (...) ---
def main():
D = roverlay.rpackage.descriptionreader.DescriptionReader
config = setup()
for desc in D.parse_files ( *sys.argv[1:] ):
print ( desc )
# --- end of main (...) ---
if __name__ == '__main__':
main()
|