Top |
void | li_set_verbose_mode () |
gchar * | li_get_current_arch_h () |
gchar * | li_get_arch_triplet () |
gint | li_compare_versions () |
LiPkgInfo * | li_parse_dependency_string () |
GPtrArray * | li_parse_dependencies_string () |
void | li_reset_umask () |
void
li_set_verbose_mode (gboolean verbose
);
Write verbose output on the command line.
gchar *
li_get_current_arch_h (void
);
Get the current architecture in a human-friendly form (e.g. "amd64" instead of "x86_64").
gchar *
li_get_arch_triplet (void
);
Get the full architecture triplet, e.g. "x86_64-linux-gnu".
gint li_compare_versions (const gchar *a
,const gchar *b
);
Compare alpha and numeric segments of two versions. This algorithm is also used in RPM and licensed under a GPLv2+ license.
LiPkgInfo *
li_parse_dependency_string (const gchar *depstr
);
Parse a dependency string (e.g. "foo (>= 4.0)") and return a LiPkgInfo object reflecting the required package name and dependency relation.
GPtrArray *
li_parse_dependencies_string (const gchar *depstr
);
Parse a dependencies string (in the form of "foo (>= 2.0), bar (== 1.0)") and return an array of LiPkgInfo objects reflecting the relations and packages specified in the dependency string.
A list of LiPkgInfo objects reflecting the relation and package.
[transfer full][element-type LiPkgInfo]