This commit is contained in:
brent s
2019-05-31 16:03:14 -04:00
parent 4ef4a939e8
commit a89a6ec94b
2 changed files with 21 additions and 6 deletions

View File

@@ -6,6 +6,8 @@ import sys
from lxml import etree
import yum
# See <optools>:/storage/backups/borg/tools/restore_yum_pkgs.py to use the XML file this generates.
# Detect RH version.
ver_re =re.compile('^(centos.*|red\s?hat.*) ([0-9\.]+) .*$', re.IGNORECASE)