devstructure/blueprint — Issue #113: failure in pypi.py on pattern_manager
Author: drewp
Created: 2012-01-25 06:31:22+00:00
State: open

dirname is '/usr/lib/python/dist-packages', globname is '/usr/lib/python*/dist-packages'

Traceback (most recent call last):
File "bin/blueprint-create", line 60, in
b = blueprint.cli.create(options, args)
File "/home/drewp/dl/blueprint/local/lib/python2.7/site-packages/blueprint/cli.py", line 32, in create
b = blueprint.Blueprint.create(args[0])
File "/home/drewp/dl/blueprint/local/lib/python2.7/site-packages/blueprint/__init__.py", line 72, in create
getattr(backend, funcname)(b, r)
File "/home/drewp/dl/blueprint/local/lib/python2.7/site-packages/blueprint/backend/pypi.py", line 43, in pypi
manager = pattern_manager.search(dirname).group(1)
AttributeError: 'NoneType' object has no attribute 'group'

Changing + to * in the regexp seemed to fix it