Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/archlinux/alpm
/ functions
Functions
1,873 in github.com/archlinux/alpm
⨍
Functions
1,873
◇
Types & classes
375
↳
Endpoints
4
↓ 1 callers
Function
format_output
Formats [`alpm-db-files`] data as another file format. If no `input_file` is provided, data is read from [`stdin`]. If `output` is provided, attempts
alpm-db/src/bin/alpm-db-files.rs:108
↓ 1 callers
Function
format_packages
Parses a SRCINFO file from a path or stdin and outputs all info grouped by packages for a given architecture in the specified format on stdout. # Err
alpm-srcinfo/src/commands.rs:120
↓ 1 callers
Function
format_source_info
Parses a SRCINFO file from a path or stdin and outputs it in the specified format on stdout. # Errors Returns an error if the input can not be parse
alpm-srcinfo/src/commands.rs:87
↓ 1 callers
Method
from
Convert this [`LintIssue`] into a [`LintIssueDisplay`] for formatted output.
alpm-lint/src/issue/mod.rs:55
↓ 1 callers
Function
generate_bin_pkginfo
Generate PKGINFO content for the binary package.
alpm-soname/tests/shared.rs:84
↓ 1 callers
Function
generate_lib_pkginfo
Generate PKGINFO content for the library package.
alpm-soname/tests/shared.rs:64
↓ 1 callers
Function
get_build_info
Returns a [`BuildInfo`] from a BUILDINFO file in an input directory. # Errors Returns an error if - the file does not exist, - the file contents ca
alpm-package/src/input.rs:287
↓ 1 callers
Function
get_dependencies
Get the dependencies of a package and print them to the given output. See the [`find_dependencies`] functions for more details. # Errors Returns an
alpm-soname/src/commands.rs:97
↓ 1 callers
Function
get_install_scriptlet
Returns whether an [alpm-install-scriptlet] exists in an input directory. # Errors Returns an error if - the file contents cannot be read to a buff
alpm-package/src/input.rs:259
↓ 1 callers
Function
get_mtree
Returns an [`Mtree`] and its file hash digest. # Errors Returns an error if - the file does not exist, - the file contents cannot be read to a buff
alpm-package/src/input.rs:322
↓ 1 callers
Function
get_package_info
Returns a [`PackageInfo`] from a PKGINFO file in an input directory. # Errors Returns an error if - the file does not exist, - the file contents ca
alpm-package/src/input.rs:305
↓ 1 callers
Function
get_packages_list
Downloads pkgbase.gz from aurweb and extracts the package names.
dev-scripts/src/sync/aur.rs:162
↓ 1 callers
Function
get_provisions
Get the provisions of a package and print them to the given output. See the [`find_provisions`] function for more details. # Errors Returns an erro
alpm-soname/src/commands.rs:37
↓ 1 callers
Function
get_raw_dependencies
Get the raw ELF soname dependencies of a package and print them to the given output. Unlike [`get_dependencies`], this function does not filter the d
alpm-soname/src/commands.rs:159
↓ 1 callers
Function
get_tar_file_list
Get the list of all files inside a given compressed tarball. This function provides data which is necessary to determine which subset of files should
dev-scripts/src/sync/mirror/mod.rs:367
↓ 1 callers
Method
handleCheckboxChange
(selectElement, selectedTextElement)
alpm-lint-website/static/js/lint-filter.js:115
↓ 1 callers
Method
handleDeepLink
()
alpm-lint-website/static/js/lint-rules.js:97
↓ 1 callers
Function
handle_package
Adds a map of [`Keyword`] and [`ClearableValue`] to a [`Package`]. Handles parsing and type conversions of all raw input into their respective [`alpm
alpm-srcinfo/src/pkgbuild_bridge/package.rs:284
↓ 1 callers
Function
handle_package_base
Convert the raw keyword map from the [`BridgeOutput`] into a well-formed and typed [`PackageBase`]. Handles parsing and type conversions of all raw i
alpm-srcinfo/src/pkgbuild_bridge/package_base.rs:136
↓ 1 callers
Function
handle_packages
Converts parsed [`BridgeOutput::packages`] output into [`Package`]s. # Enforced Invariants All scoped package variables must have a respective entry
alpm-srcinfo/src/pkgbuild_bridge/package.rs:64
↓ 1 callers
Method
help_text
(&self)
alpm-lint/src/lint_rules/store.rs:420
↓ 1 callers
Method
help_text
(&self)
alpm-lint/src/lint_rules/source_info/undefined_architecture.rs:89
↓ 1 callers
Method
init
()
alpm-lint-website/static/js/lint-rules.js:15
↓ 1 callers
Method
init
()
alpm-lint-website/static/js/lint-filter.js:30
↓ 1 callers
Function
init_logger
Initialize a logger that shows trace messages on stderr.
alpm-types/src/version/pkg_minimal.rs:321
↓ 1 callers
Method
initialize_lint_rules
Initializes and configures all linting rules. This function instantly returns if the lints have already been initialized.
alpm-lint/src/lint_rules/store.rs:113
↓ 1 callers
Method
inner
Returns a reference to the inner [`SchemaVersion`].
alpm-repo-db/src/desc/schema.rs:40
↓ 1 callers
Method
inner
Returns a reference to the inner [`SchemaVersion`].
alpm-mtree/src/schema.rs:38
↓ 1 callers
Method
inner
Returns a reference to the inner [`SchemaVersion`].
alpm-db/src/desc/schema.rs:40
↓ 1 callers
Method
inner
Return a reference to the inner type
alpm-types/src/system.rs:163
↓ 1 callers
Method
inner
Returns a reference to the inner [`SchemaVersion`].
alpm-pkginfo/src/schema.rs:39
↓ 1 callers
Method
input_paths
Returns an [`InputPaths`] for the input directory and all relative paths contained in it.
alpm-package/src/input.rs:596
↓ 1 callers
Method
into_inner
Consumes the `Url` and returns the inner `url::Url`.
alpm-types/src/url.rs:60
↓ 1 callers
Method
into_reader
Creates a [`PackageReader`] for the package. Convenience wrapper for [`PackageReader::try_from`]. # Errors Returns an error if `self` cannot be con
alpm-package/src/package.rs:1101
↓ 1 callers
Method
is_compatible_with
Returns `true` if the result of a comparison between the actual and required package versions satisfies the comparison function.
alpm-types/src/version/requirement.rs:400
↓ 1 callers
Method
is_deprecated
Determines if a checksum algorithm is considered deprecated for security reasons. Returns `true` for cryptographically unsafe algorithms that should
alpm-types/src/checksum.rs:160
↓ 1 callers
Method
is_single_file
Checks whether the [`LintScope`] is for a single file.
alpm-lint/src/scope.rs:242
↓ 1 callers
Method
len
Returns the number of entries in the architectures list.
alpm-types/src/system.rs:376
↓ 1 callers
Method
level
(&self)
alpm-lint/src/lint_rules/source_info/openpgp_key_id.rs:84
↓ 1 callers
Method
location
(&self)
python-alpm/src/types/source.rs:33
↓ 1 callers
Method
matches_restriction
Validate that the BuildTool has a name matching one Name in a list of restrictions
alpm-types/src/name.rs:80
↓ 1 callers
Function
md5
Parse an MD5 hash.
alpm-mtree/src/parser.rs:213
↓ 1 callers
Method
merge_architecture_properties
Merges in architecture-specific overrides for fields. Takes a [`PackageBaseArchitecture`] and extends the non-architecture specific values with the a
alpm-srcinfo/src/source_info/v1/merged.rs:350
↓ 1 callers
Method
merge_package
Merges the non-architecture specific fields of a [`Package`] into `self`. Any field on `package` that is not [`Override::No`] overrides the pendant o
alpm-srcinfo/src/source_info/v1/merged.rs:316
↓ 1 callers
Method
merge_package_properties
(&mut self, properties: PackageArchitecture)
python-alpm/src/srcinfo/source_info/v1/package_base.rs:382
↓ 1 callers
Method
merge_package_properties
Merges in the architecture specific properties of a package. Each existing field of `properties` overrides the architecture-independent pendant on `s
alpm-srcinfo/src/source_info/v1/package_base.rs:167
↓ 1 callers
Function
meta
Writes metadata about available lint groups, scopes, and levels to output. This is primarily intended for static site generators that need to create
alpm-lint/src/commands.rs:226
↓ 1 callers
Method
next
(&mut self)
alpm-lint/src/lint_rules/store.rs:256
↓ 1 callers
Function
octal_triplet
Parse and convert a single octal triplet string into a byte. This isn't a trivial conversion as an octal has three bits and an octal triplet has ther
alpm-mtree/src/path_decoder.rs:79
↓ 1 callers
Function
openpgp_verify_file
Verifies a `file` using a `signature` and a [`ModelBasedVerifier`]. The success or failure of the verification is transmitted through logging. # Err
dev-scripts/src/testing.rs:45
↓ 1 callers
Function
opt_value
(input: &mut &str)
alpm-repo-db/src/desc/parser.rs:215
↓ 1 callers
Function
opt_value
Parses a single optional value from the input. Consumes text until the end of the current line. # Errors Returns an error if the next token cannot
alpm-db/src/desc/parser.rs:209
↓ 1 callers
Function
options
Writes the definitions of all linting options to output.
alpm-lint/src/commands.rs:176
↓ 1 callers
Method
parallel_extract_files
Extract .SRCINFO and PKGBUILD files from aur.git branches.
dev-scripts/src/sync/aur.rs:90
↓ 1 callers
Method
parallel_update_or_clone
Update/clone all git repositories in parallel with rayon. A progress bar is added for progress indication.
dev-scripts/src/sync/pkgsrc.rs:136
↓ 1 callers
Function
parse_arch_array
Parses a [`Value`] as [`Architectures`]. # Errors Returns an error for `keyword` if `value` cannot be parsed as either a stand-alone "any" or a list
alpm-srcinfo/src/pkgbuild_bridge/mod.rs:199
↓ 1 callers
Function
path_from_parsed
Create the actual final MTREE path representation from the parsed input. This is the core of the mtree interpreter logic and does a few critical thin
alpm-mtree/src/mtree/v2.rs:845
↓ 1 callers
Method
paths
Returns the paths.
alpm-repo-db/src/files/v1.rs:106
↓ 1 callers
Function
paths_from_parsed_content
Take unsanitized parsed content and convert it to a list of sorted paths with properties. This is effectively the interpreter step for mtree's declar
alpm-mtree/src/mtree/v2.rs:748
↓ 1 callers
Method
permissions
Returns the access permissions that apply for the [`TarballEntry`]. # Notes - This is a convenience method for retrieving the mode of the [`Entry::h
alpm-compress/src/tarball/reader.rs:219
↓ 1 callers
Method
pkg_type
Returns the package type.
alpm-types/src/pkg.rs:236
↓ 1 callers
Function
pkgbase_architecture_properties
Appends a [`PackageBaseArchitecture`] based on an [`Architecture`] in [SRCINFO] format to a [`String`]. The architecture-specific `properties` are wr
alpm-srcinfo/src/source_info/v1/writer.rs:125
↓ 1 callers
Function
pkgbase_section
Appends a [`PackageBase`] in [SRCINFO] format to a [`String`]. The items in the `pkgbase` section are written to `output` in an order compatible with
alpm-srcinfo/src/source_info/v1/writer.rs:68
↓ 1 callers
Function
pkgname_architecture_properties
Appends a [`PackageArchitecture`] based on an [`Architecture`] in [SRCINFO] format to a [`String`]. The architecture-specific `properties` are writte
alpm-srcinfo/src/source_info/v1/writer.rs:315
↓ 1 callers
Function
pkgname_section
Appends a [`Package`] with an [`Architecture`] in [SRCINFO] format to a [`String`]. The items in the `pkgname` section are written to `output` in an
alpm-srcinfo/src/source_info/v1/writer.rs:270
↓ 1 callers
Method
pkgrel
(&self)
python-alpm/src/types/version.rs:218
↓ 1 callers
Method
read_buildinfo
Returns the [`BuildInfo`] of the package. This is a convenience wrapper around [`PackageReader::read_metadata_file`]. # Errors Returns an error if
alpm-package/src/package.rs:1042
↓ 1 callers
Method
read_entry
Reads a specific [`TarballEntry`] by its path. Returns [`None`] if the entry does not exist. # Errors Returns an error if [`Self::entries`] or read
alpm-compress/src/tarball/reader.rs:68
↓ 1 callers
Method
read_install_scriptlet
Reads the content of the [alpm-install-scriptlet] from the package archive, if it exists. # Errors Returns an error if [`PackageReader::entries`] fa
alpm-package/src/package.rs:896
↓ 1 callers
Method
read_mtree
Returns the [`Mtree`] of the package. This is a convenience wrapper around [`PackageReader::read_metadata_file`]. # Errors Returns an error if - a
alpm-package/src/package.rs:1066
↓ 1 callers
Method
register
Registers all lints that are made available in the store. # Note New lints must be specified in this function!
alpm-lint/src/lint_rules/store.rs:95
↓ 1 callers
Function
relative_data_files
Collects all data files in a directory, relative to it. Convenience wrapper around [`relative_files`] that passes in all variants of [`MetadataFileNa
alpm-common/src/package/input.rs:138
↓ 1 callers
Method
remove_old_repos
Remove all local repositories for packages that no longer exist in the official repositories. Get the list of all locally available pkgsrc repositori
dev-scripts/src/sync/pkgsrc.rs:107
↓ 1 callers
Function
remove_tarball_suffix
A small helper function that removes the `.pkg.tar.*` suffix of a tarball. This is necessary to get the actual package name from a packages full file
dev-scripts/src/sync/mirror/mod.rs:456
↓ 1 callers
Function
rules
Writes the definition of all linting rules to output. Writes a map of [`SerializableLintRule`]s in serialized form.
alpm-lint/src/commands.rs:159
↓ 1 callers
Method
run
Runs an example lint that lints [`SourceInfo`] data. It extracts the [`SourceInfo`] data from the provided [`Resources`] and runs some lint logic on
alpm-lint/examples/my_new_lint.rs:155
↓ 1 callers
Function
run_bsdtar
Runs [bsdtar] in `path` with dedicated `options` and return its stdout. Creates [ALPM-MTREE] data based on the string slice `stdin` which contains al
alpm-mtree/src/file/common.rs:69
↓ 1 callers
Function
run_command
Runs a command of the `dev-scripts` executable.
dev-scripts/src/main.rs:26
↓ 1 callers
Method
run_tests
Run validation on all local test files that have been downloaded via the `test-files download` command.
dev-scripts/src/testing.rs:99
↓ 1 callers
Method
scope
Returns the [`LintScope`] for the [`Resources`].
alpm-lint/src/resources.rs:69
↓ 1 callers
Method
scope
(&self)
alpm-lint/src/lint_rules/source_info/undefined_architecture.rs:81
↓ 1 callers
Method
scope
(&self)
alpm-lint/src/lint_rules/source_info/openpgp_key_id.rs:80
↓ 1 callers
Method
scope
(&self)
alpm-lint/examples/my_new_lint.rs:91
↓ 1 callers
Method
serializable_lint_rules
Returns a map of all available and configured lint rules as [`SerializableLintRule`].
alpm-lint/src/lint_rules/store.rs:142
↓ 1 callers
Function
set_buildinfo_args
(cmd: &mut Command, input: &BuildInfoInput)
alpm-buildinfo/tests/integration.rs:309
↓ 1 callers
Function
set_buildinfo_env
(cmd: &mut Command, input: &BuildInfoInput)
alpm-buildinfo/tests/integration.rs:363
↓ 1 callers
Method
set_compression
Sets the compression of the [`PackageFileName`]. # Examples ``` use std::str::FromStr; use alpm_types::{CompressionAlgorithmFileExtension, PackageF
alpm-types/src/package/file_name.rs:251
↓ 1 callers
Function
set_pkginfo_args
(cmd: &mut Command, input: &PackageInfoInput)
alpm-pkginfo/tests/integration.rs:352
↓ 1 callers
Function
set_pkginfo_env
(cmd: &mut Command, input: &PackageInfoInput)
alpm-pkginfo/tests/integration.rs:419
↓ 1 callers
Method
setupCollapsibleRules
()
alpm-lint-website/static/js/lint-rules.js:22
↓ 1 callers
Method
setupDropdowns
()
alpm-lint-website/static/js/lint-filter.js:35
↓ 1 callers
Method
setupEventListeners
()
alpm-lint-website/static/js/lint-filter.js:85
↓ 1 callers
Method
setupScopedNameBreaking
()
alpm-lint-website/static/js/lint-rules.js:134
↓ 1 callers
Function
setup_valid_srcinfo
Creates a valid `.SRCINFO` file in a temporary directory. Returns the temporary directory handle.
alpm-lint/tests/integration.rs:38
↓ 1 callers
Function
sha256
Parse a SHA-256 hash.
alpm-mtree/src/parser.rs:203
↓ 1 callers
Method
shared_object_name
Returns a reference to the [`SharedObjectName`] of the [`SonameV1`]. # Examples ``` use alpm_types::{ElfArchitectureFormat, SharedObjectName, Soname
alpm-types/src/relation/soname.rs:425
↓ 1 callers
Method
soname
(&self)
python-alpm/src/types/relation.rs:152
↓ 1 callers
Method
source_url
(&self)
python-alpm/src/types/source.rs:25
↓ 1 callers
Method
sync_remote_databases
Download all official repository file databases and unpack them. They contain the following files: - `desc` - `files`
dev-scripts/src/sync/mirror/mod.rs:48
↓ 1 callers
Method
sync_remote_packages
Download all official repository packages and extract all files that're interesting to us. Specifically: - `.BUILDINFO` - `.MTREE` - `.PKGINFO` - `.I
dev-scripts/src/sync/mirror/mod.rs:167
← previous
next →
301–400 of 1,873, ranked by callers