示例#1
0
/**
 * dnf_package_get_sourcerpm:
 * @pkg: a #DnfPackage instance.
 *
 * Gets the source RPM for the package.
 *
 * Returns: (transfer none): a string, or %NULL
 *
 * Since: 0.7.0
 */
const char *
dnf_package_get_sourcerpm(DnfPackage *pkg)
{
    Solvable *s = get_solvable(pkg);
    repo_internalize_trigger(s->repo);
    return solvable_lookup_sourcepkg(s);
}
示例#2
0
char *
hy_package_get_sourcerpm(HyPackage pkg)
{
    Solvable *s = get_solvable(pkg);
    return solv_strdup(solvable_lookup_sourcepkg(s));
}
示例#3
0
/**
 * hif_package_get_sourcerpm:
 * @pkg: a #HifPackage instance.
 *
 * Gets the source RPM for the package.
 *
 * Returns: (transfer full): a string, or %NULL
 *
 * Since: 0.7.0
 */
char *
hif_package_get_sourcerpm(HifPackage *pkg)
{
    Solvable *s = get_solvable(pkg);
    return g_strdup(solvable_lookup_sourcepkg(s));
}