adding file extractor

This commit is contained in:
brent s
2019-01-09 14:44:42 -05:00
parent 86875ff09f
commit c5821b4e56
2 changed files with 207 additions and 0 deletions

View File

@@ -45,6 +45,7 @@ class FileGetter(object):
def getLocalFiles(self, rpm_files):
# Needed because the rpm module can't handle arbitrary rpm files??? If it can, someone let me know.
# According to http://rpm5.org/docs/api/classRpmhdr.html#_details I can.
import yum
for r in rpm_files:
pkg = yum.YumLocalPackage(ts = self.trns,