KojiClient: only validate tag or build if they're actually set
commitb4b99cb059d23aa886d152a063e20043241d011d
authorlmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4>
Wed, 1 Jun 2011 04:08:01 +0000 (1 04:08 +0000)
committerlmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4>
Wed, 1 Jun 2011 04:08:01 +0000 (1 04:08 +0000)
tree230bf3e4994404097a861a9580e078524efa399f
parent0124b3cf0a8d1089be4416ef151f2d68b426f2f3
KojiClient: only validate tag or build if they're actually set

KojiClient is responsible for getting information and files on
koji/brew. The is_pkg_valid() method was checking for valid tags
and valid builds even when they were not set. Of couse, if neither
are set, the package specification is not valid.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5385 592f7852-d20e-0410-864c-8624ca9c26a4
client/virt/virt_utils.py