Top |
struct | LiPkgInfoClass |
enum | LiVersionFlags |
enum | LiPackageFlags |
enum | LiPackageKind |
LiPkgInfo |
const gchar *
li_package_kind_to_string (LiPackageKind kind
);
Converts the enumerated value to an text representation.
LiPackageKind
li_package_kind_from_string (const gchar *kind_str
);
Converts the text representation to an enumerated value.
gboolean li_pkg_info_save_to_file (LiPkgInfo *pki
,const gchar *filename
);
gboolean
li_pkg_info_save_changes (LiPkgInfo *pki
);
Save changes to the control file of the installed package which matches the id of this LiPkgInfo. This does only override an existing file.
const gchar *
li_pkg_info_get_version (LiPkgInfo *pki
);
Get the version for this package, if specified.
void li_pkg_info_set_version (LiPkgInfo *pki
,const gchar *version
);
Set the version of this package
const gchar *
li_pkg_info_get_appname (LiPkgInfo *pki
);
Get a human-friendly full name of this software.
const gchar *
li_pkg_info_get_runtime_dependency (LiPkgInfo *pki
);
void li_pkg_info_set_runtime_dependency (LiPkgInfo *pki
,const gchar *uuid
);
void li_pkg_info_set_dependencies (LiPkgInfo *pki
,const gchar *deps_string
);
const gchar *
li_pkg_info_get_sdk_dependencies (LiPkgInfo *pki
);
Dependencies used by the development version of this package. This is only useful for IPK source packages.
void li_pkg_info_set_sdk_dependencies (LiPkgInfo *pki
,const gchar *deps_string
);
Set dependencies used by the development version of this package. This is only useful for IPK source packages.
const gchar *
li_pkg_info_get_build_dependencies (LiPkgInfo *pki
);
Dependencies needed to build this package.
void li_pkg_info_set_build_dependencies (LiPkgInfo *pki
,const gchar *deps_string
);
Set dependencies needed to build this package.
const gchar *
li_pkg_info_get_checksum_sha256 (LiPkgInfo *pki
);
The SHA256 checksum of the package referenced by this package-info. This is usually used in package-indices.
void li_pkg_info_set_checksum_sha256 (LiPkgInfo *pki
,const gchar *hash
);
const gchar *
li_pkg_info_get_component_kind (LiPkgInfo *pki
);
The AppStream component kind of the software component this package contains.
You can use as_component_kind_from_string()
to convert it into its enum representation.
void li_pkg_info_set_component_kind (LiPkgInfo *pki
,const gchar *kind
);
void li_pkg_info_set_version_relation (LiPkgInfo *pki
,LiVersionFlags vrel
);
LiVersionFlags
li_pkg_info_get_version_relation (LiPkgInfo *pki
);
const gchar *
li_pkg_info_get_architecture (LiPkgInfo *pki
);
Get the architecture this package was built for.
void li_pkg_info_set_architecture (LiPkgInfo *pki
,const gchar *arch
);
const gchar *
li_pkg_info_get_repo_location (LiPkgInfo *pki
);
Get the location of this package in the pool of a repository.
void li_pkg_info_set_repo_location (LiPkgInfo *pki
,const gchar *location
);
gchar *
li_pkg_info_get_name_relation_string (LiPkgInfo *pki
);
Get the package name and relation as string, e.g. "foobar >= 2.1"
gboolean li_pkg_info_satisfies_requirement (LiPkgInfo *pki
,LiPkgInfo *req
);
Check if the current package pki
matches the requirements defined
by LiPkgInfo req
.
const gchar *
li_pkg_info_get_abi_break_versions (LiPkgInfo *pki
);
void li_pkg_info_set_abi_break_versions (LiPkgInfo *pki
,const gchar *versions
);
Flags defining version requirements on other LiPkgInfo instances.