-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
48 lines (31 loc) · 1.28 KB
/
README.txt
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
41
42
43
44
45
46
47
===========
UpdateInfo
===========
UpdateInfo provides useful objects for creating the updateinfo.xml
for use with yum's security plugin.
This isn't really fancy, but I've included the xsd this validates against.
The xsd should also validate against Fedora or Suse.
Quick start
-----------
1. import updateinfo
2. u = updateinfo.Updateinfo()
3. fd = open('/path/to/sample/in/doc/dir/example.xml', 'r')
4. u.xml = fd.read()
5. print(u.xml)
The resulting xml file should be added to the yum repo metadata.
modifyrepo updateinfo.xml /path/to/repodata/
I've included an example program that should help get you started.
If you are curious the objects log intersting actions at logger.DEBUG
There are a lot of options and ways of using these objects, so make sure
to read the help that comes with each module.
There is also a helper directory you can use which will allow you to very
simply build and update your updateinfo.xml if you wish.
Odds are you will need to build your own helper object for your data store,
but these should at least get you started with the basics.
Testing
-----------
If you wish to run the provided unit tests, simply run:
python updateinfo/tests/
For coverage.py try:
coverage run --include=updateinfo* --branch updateinfo/tests/__main__.py
coverage html