这是indexloc提供的服务,不要输入任何密码
Skip to content

Regenerate PKGBUILD schema #26

@lahwaacz

Description

@lahwaacz

I was trying to regenerate the PKGBUILD schema but failed due to a couple of issues:

  • It seems that the keywords are extracted from the PKGBUILD man page through the lsp_tree_sitter.misc module. However, it uses the platformdirs package and its site_data_path("man") function, which gives /usr/local/share/man on Arch Linux. However, the true location is /usr/share/man.
  • The init_schema function tries to read licenses from /usr/share/licenses/common:
    + os.listdir("/usr/share/licenses/common")

    This directory does not exist anymore on Arch Linux so it fails with FileNotFoundError: [Errno 2] No such file or directory: '/usr/share/licenses/common'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions