import re


def get_depend(pkgs,item):
    """
    Provide the package name that contains the item in its p entry or
    return False
    """
    for pkg in pkgs:
        if 'p' in pkg:
            plist=re.split(' ',pkg['p'])
            for plist_i in plist:
                if re.match('.*'+item+'.*',plist_i):
                    return pkg['P']
    return False