Commit 066cbd14 authored by Stefan H. Holek's avatar Stefan H. Holek

Merged 2.11 branch r89897 into the trunk.

Don't tie installPackage to a layer.
parent a1966b51
......@@ -189,9 +189,8 @@ def hasPackage(name):
'''Checks if a package has been registered with five:registerPackage.'''
return name in [m.__name__ for m in getattr(Products, '_registered_packages', [])]
@layer.onsetup
def installPackage(name, quiet=0):
'''Installs a registered Python package at layer setup time.'''
'''Installs a registered Python package.'''
quiet = 1 # Ignore argument
_installPackage(name, quiet)
......
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