# SOME DESCRIPTIVE TITLE # Copyright (C) YEAR Free Software Foundation, Inc. # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: 2026-01-05 10:43+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" # #. Required to disable full justification in groff 1.23.0. #. ======================================================================== #. type: IX #: archlinux #, no-wrap msgid "Title" msgstr "" # #. Required to disable full justification in groff 1.23.0. #. ======================================================================== #. type: IX #: archlinux #, no-wrap msgid "pacutils-mtree 3" msgstr "" #. type: TH #: archlinux #, no-wrap msgid "pacutils-mtree" msgstr "" #. type: TH #: archlinux #, no-wrap msgid "2025-12-04" msgstr "" #. type: TH #: archlinux #, no-wrap msgid "pacutils" msgstr "" #. type: SH #: archlinux #, no-wrap msgid "NAME" msgstr "" #. type: Plain text #: archlinux msgid "pacutils-mtree - read mtree data for installed packages" msgstr "" #. type: IX #: archlinux #, no-wrap msgid "SYNOPSIS" msgstr "" #. type: IX #: archlinux #, no-wrap msgid "Header" msgstr "" #. type: Plain text #: archlinux #, no-wrap msgid "" "\\& #include Epacutils/mtree.hE\n" "\\&\n" "\\& typedef struct pu_mtree_t {\n" "\\& char *path;\n" "\\& char *type;\n" "\\& uid_t uid;\n" "\\& gid_t gid;\n" "\\& mode_t mode;\n" "\\& off_t size;\n" "\\& char *md5digest;\n" "\\& char *sha256digest;\n" "\\& } pu_mtree_t;\n" "\\&\n" "\\& typedef struct {\n" "\\& FILE *stream;\n" "\\& int eof;\n" "\\& pu_mtree_t defaults;\n" "\\& } pu_mtree_reader_t;\n" "\\&\n" "\\& pu_mtree_reader_t *pu_mtree_reader_open_stream(FILE *stream);\n" "\\& pu_mtree_reader_t *pu_mtree_reader_open_package(alpm_handle_t *h, alpm_pkg_t *p);\n" "\\& pu_mtree_t *pu_mtree_reader_next(pu_mtree_reader_t *reader, pu_mtree_t *dest);\n" "\\& void pu_mtree_reader_free(pu_mtree_reader_t *reader);\n" "\\& void pu_mtree_free(pu_mtree_t *mtree);\n" "\\&\n" "\\& /* deprecated */\n" "\\& alpm_list_t *pu_mtree_load_pkg_mtree(alpm_handle_t *handle, alpm_pkg_t *pkg);\n" msgstr "" #. type: IX #: archlinux #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: archlinux msgid "" "Package mtree reading functions are provided to fill gaps in " "libarchive\\*(Aqs mtree reader, notably CW<\\*(C`md5digest\\*(C'> and " "CW<\\*(C`sha256digest\\*(C'> which are currently not read by libarchive. " "Support is incomplete and should only be used to supplement libalpm\\*(Aqs " "native mtree reader." msgstr "" #. type: IX #: archlinux #, no-wrap msgid "pu_mtree_reader_t *pu_mtree_reader_open_stream(FILE *stream);" msgstr "" #. type: IX #: archlinux #, no-wrap msgid "Item" msgstr "" #. type: Plain text #: archlinux msgid "Open a file stream for parsing." msgstr "" #. type: IX #: archlinux #, no-wrap msgid "pu_mtree_reader_t *pu_mtree_reader_open_package(alpm_handle_t *h, alpm_pkg_t *p);" msgstr "" #. type: Plain text #: archlinux msgid "" "Open an installed package\\*(Aqs mtree file for parsing. Results are " "undefined if \\&CW<\\*(C`p\\*(C'> is not a locally installed package." msgstr "" #. type: IX #: archlinux #, no-wrap msgid "pu_mtree_t *pu_mtree_reader_next(pu_mtree_reader_t *reader, pu_mtree_t *dest);" msgstr "" #. type: Plain text #: archlinux msgid "" "Read and return the next entry in the mtree file. If CW<\\*(C`dest\\*(C'> " "is CW<\\*(C`NULL\\*(C'> a new \\&CW<\\*(C`pu_mtree_t\\*(C'> object will be " "allocated that should be freed by the caller. Otherwise, it will be filled " "with the parsed data. Internally allocated memory will automatically be " "freed as needed." msgstr "" #. type: IX #: archlinux #, no-wrap msgid "void pu_mtree_free(pu_mtree_t *mtree);" msgstr "" #. type: Plain text #: archlinux msgid "Free a CW<\\*(C`pu_mtree_t\\*(C'> struct." msgstr "" #. type: IX #: archlinux #, no-wrap msgid "void pu_mtree_reader_free(pu_mtree_reader_t *reader);" msgstr "" #. type: Plain text #: archlinux msgid "Free a CW<\\*(C`pu_mtree_reader_t\\*(C'> object." msgstr "" #. type: IX #: archlinux #, no-wrap msgid "alpm_list_t *pu_mtree_load_pkg_mtree(alpm_handle_t *handle, alpm_pkg_t *pkg);" msgstr "" #. type: Plain text #: archlinux msgid "" "Returns a list of mtree entries for CW<\\*(C`pkg\\*(C'>. B: use " "\\&CW<\\*(C`pu_mtree_reader_open_package\\*(C'> instead." msgstr "" #. type: IX #: archlinux #, no-wrap msgid "EXAMPLES" msgstr "" #. type: IX #: archlinux #, no-wrap msgid "Print file md5sums for a package:" msgstr "" #. type: Plain text #: archlinux #, no-wrap msgid "" "\\& pu_mtree_t *m;\n" "\\& pu_mtree_reader_t *r;\n" "\\&\n" "\\& if((r = pu_mtree_reader_open_package(handle, pkg)) == NULL) {\n" "\\& fprintf(stderr, \"error: unable to load mtree data for \\*(Aq%s\\*(Aq\\en\",\n" "\\& alpm_pkg_get_name(pkg));\n" "\\& return;\n" "\\& }\n" "\\&\n" "\\& while((m = pu_mtree_reader_next(r, NULL))) {\n" "\\& const char *md5 = m-Emd5digest;\n" "\\& printf(\"%s: %s\\en\", m-Epath,\n" "\\& md5 && md5[0] != \\*(Aq\\e0\\*(Aq ? md5 : \"(no md5sum provided)\");\n" "\\& pu_mtree_free(m);\n" "\\& }\n" "\\& if(!reader-Eeof) {\n" "\\& fprintf(stderr, \"error: unable to read mtree data for \\*(Aq%s\\*(Aq\\en\",\n" "\\& alpm_pkg_get_name(pkg));\n" "\\& }\n" "\\&\n" "\\& pu_mtree_reader_free(r);\n" msgstr "" #. type: IX #: archlinux #, no-wrap msgid "SEE ALSO" msgstr "" #. type: IP #: archlinux #, no-wrap msgid "B\\|(3), B\\|(3), B\\|(3)" msgstr "" #. type: IX #: archlinux #, no-wrap msgid "alpm_pkg_mtree_open, alpm_pkg_mtree_next, alpm_pkg_mtree_close" msgstr "" #. type: IX #: archlinux #, no-wrap msgid "mtree - description of pu_mtree_t members" msgstr ""