def METHOD_NAME(self):
    pkgs = dict()
    with open(self.initial_manifest) as manifest:
        for line in manifest.read().split('\n'):
            comment = re.match("^#.*", line)
            pattern = "^(%s|%s|%s|%s),(.*)$" % \
                      (self.PKG_TYPE_MUST_INSTALL,
                       self.PKG_TYPE_ATTEMPT_ONLY,
                       self.PKG_TYPE_MULTILIB,
                       self.PKG_TYPE_LANGUAGE)
            pkg = re.match(pattern, line)
            if comment is not None:
                continue
            if pkg is not None:
                pkg_type = pkg.group(1)
                pkg_name = pkg.group(2)
                if not pkg_type in pkgs:
                    pkgs[pkg_type] = [pkg_name]
                else:
                    pkgs[pkg_type].append(pkg_name)
    return pkgs