From f2b8deabe4c49831121bab12ba3e1d947ba818ed Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Fri, 18 Jan 2008 18:28:09 +0000 Subject: [PATCH] -remove unnecessary code --- qaapi/qa/modules/plc/install.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qaapi/qa/modules/plc/install.py b/qaapi/qa/modules/plc/install.py index 1a30d13..d633919 100644 --- a/qaapi/qa/modules/plc/install.py +++ b/qaapi/qa/modules/plc/install.py @@ -39,6 +39,7 @@ class install(Test): # build command full_command = "" + install_command = " rpm -Uvh %(url)s " if system_type in ['vserv', 'vserver']: full_command += " vserver %(root_dir)s exec " elif system_type in ['chroot']: @@ -46,7 +47,8 @@ class install(Test): else: raise Exception, "Invalid system type %(system_type)s" % locals() - (stdout, stderr) = utils.popen(full_command + " rpm -Uvh " + url) + full_command += install_command % locals() + (stdout, stderr) = utils.popen(full_command) if self.config.verbose: utils.header("\n".join(stdout)) -- 2.47.0