Don't execute py2rpm with no names.

An error can be triggered by downloading anvil and then
just trying to uninstall (before preparing and installing).

Change-Id: I1e7fa76b55ec23851374966d4b49fcedd648e3d6
This commit is contained in:
Joshua Harlow
2013-05-31 19:02:29 -07:00
parent e0ccae357f
commit e9bb9d6e82

View File

@@ -272,6 +272,9 @@ BuildArch: noarch
self.anvil_repo_filename, utils.expand_template(content, params))
def _create_openstack_packages_list(self):
if not self.python_names:
return []
cmdline = [self.py2rpm_executable, "--convert"] + self.python_names
rpm_names = []
# run as root since /tmp/pip-build-root must be owned by root