summaryrefslogtreecommitdiff
path: root/tko/test.cgi
diff options
context:
space:
mode:
authormbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4>2007-11-05 16:31:08 +0000
committermbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4>2007-11-05 16:31:08 +0000
commite35eb59dbeb77cf5b6ea047324dc93af8d841174 (patch)
tree36a349b6a837461a2e10055f5dd566607bac2f39 /tko/test.cgi
parentcb009bbdf9b9492cca02a3fc80023fc3ba43ab36 (diff)
Add an initial implementation of a install_package() function, that
basically takes as an argument a package file, tries to figure out its file type, and if it's one file that we know how to handle (only rpm and dpkg files implemented so far), check if it's installed, if it's not, try to install it. I've improved the patch based on previous input. Basically I've created the file package.py, and added the PackageError definition on error.py. Not sure if it's worth to make package a class. Any thoughts on that? About the rpm_installed() function that's used on autotest_utils, I believe it's better to have a function a little more generic, like package_installed(), that's also implemented on this patch. My patch also removes the rpm_installed function. Signed of by: Lucas Meneghel Rodrigues <lucasmr@br.ibm.com> git-svn-id: svn://test.kernel.org/autotest/trunk@879 592f7852-d20e-0410-864c-8624ca9c26a4
Diffstat (limited to 'tko/test.cgi')
0 files changed, 0 insertions, 0 deletions