Commit 778d76ba authored by Monty Taylor's avatar Monty Taylor Committed by Jenkins

Don't try to smart find packages that aren't there.

We help out by looking for the obvious stuff. But sometimee, like in
git-review, we don't have a package at all.

Change-Id: Ic575c0008c69ffaba43a637b460899dd848d3fd5
Reviewed-on: https://review.openstack.org/26289Reviewed-by: default avatarJames E. Blair <corvus@inaugust.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: default avatarClark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
parent 2796f9ad
......@@ -64,8 +64,9 @@ pbr.packaging.DistutilsInstall
# ["test-requirements.txt", "tools/test-requires"])
files = config.get('files', dict())
files['packages'] = smart_find_packages(
files.get('packages', metadata['name']))
package = files.get('packages', metadata['name']).strip()
if os.path.isdir(package):
files['packages'] = smart_find_packages(package)
if 'manpages' in pbr_config:
man_sections = dict()
......
......@@ -30,5 +30,5 @@ commands =
commands = {posargs}
[flake8]
exclude = .venv,.tox,dist,doc,*.egg
exclude = .venv,.tox,dist,doc,*.egg,build
show-source = true
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