Commit c1ec8ead by Patrick Callahan

BUG FIX: Add package name to the cmd.

parent 79b56667
...@@ -73,7 +73,7 @@ author: Patrick Callahan ...@@ -73,7 +73,7 @@ author: Patrick Callahan
# Function used for getting the name of a currently installed package. # Function used for getting the name of a currently installed package.
def get_current_name(m, name): def get_current_name(m, name):
cmd = '/bin/rpm -q --qf \'%{NAME}-%{VERSION}\'' cmd = '/bin/rpm -q --qf \'%{NAME}-%{VERSION}\''
(rc, stdout, stderr) = m.run_command("%s" % (cmd)) (rc, stdout, stderr) = m.run_command("%s %s" % (cmd, name))
if rc != 0: if rc != 0:
return (rc, stdout, stderr) return (rc, stdout, stderr)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment