docs: def library(repo):
      """Load packages from slpkg library and from local
      """
      pkg_list, packages = [], ""
      if repo == "sbo":
          if (os.path.isfile(
                  _meta_.lib_path + "{0}_repo/SLACKBUILDS.TXT".format(repo))):
              packages = Utils().read_file(_meta_.lib_path + "{0}_repo/"
                                           "SLACKBUILDS.TXT".format(repo))
      else:
          if (os.path.isfile(
                  _meta_.lib_path + "{0}_repo/PACKAGES.TXT".format(repo))):
              packages = Utils().read_file(_meta_.lib_path + "{0}_repo/"
                                           "PACKAGES.TXT".format(repo))
      for line in packages.splitlines():
          if repo == "sbo":
              if line.startswith("SLACKBUILD NAME: "):
                  pkg_list.append(line[17:].strip())
          elif "local" not in repo:
              if line.startswith("PACKAGE NAME: "):
                  pkg_list.append(line[15:].strip())
      if repo == "local":
          pkg_list = find_package("", _meta_.pkg_path)
      return pkg_list