pakfire_package_set_string(self->package, PAKFIRE_PKG_FILENAME, filename);
}
-static PyObject* Package_get_installed(PackageObject* self) {
- int installed = pakfire_package_is_installed(self->package);
-
- return PyBool_FromLong(installed);
-}
-
static PyObject* Package_get_downloadsize(PackageObject* self) {
size_t size = pakfire_package_get_downloadsize(self->package);
NULL,
NULL
},
- {
- "installed",
- (getter)Package_get_installed,
- NULL,
- NULL,
- NULL
- },
{
"downloadsize",
(getter)Package_get_downloadsize,
enum pakfire_digest_types type, const unsigned char* digest, const size_t length);
const char* pakfire_package_get_path(struct pakfire_package* pkg);
void pakfire_package_set_path(struct pakfire_package* pkg, const char* path);
-int pakfire_package_is_installed(struct pakfire_package* pkg);
size_t pakfire_package_get_downloadsize(struct pakfire_package* pkg);
void pakfire_package_set_downloadsize(struct pakfire_package* pkg, size_t downloadsize);
size_t pakfire_package_get_installsize(struct pakfire_package* pkg);
char* pakfire_package_join_evr(const char* e, const char* v, const char* r);
+int pakfire_package_is_installed(struct pakfire_package* pkg);
+
void pakfire_package_add_provides(struct pakfire_package* pkg, const char* dep);
void pakfire_package_add_prerequires(struct pakfire_package* pkg, const char* dep);
void pakfire_package_add_requires(struct pakfire_package* pkg, const char* dep);
pakfire_package_get_string;
pakfire_package_get_suggests;
pakfire_package_get_supplements;
- pakfire_package_is_installed;
pakfire_package_ref;
pakfire_package_set_build_host;
pakfire_package_set_build_id;
pakfire_string_set(pkg->path, path);
}
-PAKFIRE_EXPORT int pakfire_package_is_installed(struct pakfire_package* pkg) {
+int pakfire_package_is_installed(struct pakfire_package* pkg) {
Pool* pool = pakfire_get_solv_pool(pkg->pakfire);
Solvable* s = get_solvable(pkg);