These functions are empty right now and serve as placeholders
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
return NULL;
}
+
+int pakfire_db_add_package(struct pakfire_db* db, PakfirePackage pkg) {
+ return 0; // TODO
+}
+
+int pakfire_db_remove_package(struct pakfire_db* db, PakfirePackage pkg) {
+ return 0; // TODO
+}
struct pakfire_db* pakfire_db_ref(struct pakfire_db* db);
struct pakfire_db* pakfire_db_unref(struct pakfire_db* db);
+int pakfire_db_add_package(struct pakfire_db* db, PakfirePackage pkg);
+int pakfire_db_remove_package(struct pakfire_db* db, PakfirePackage pkg);
+
#endif
#endif /* PAKFIRE_DB_H */
if (r)
break;
+ r = pakfire_db_add_package(db, step->package);
+ if (r)
+ break;
+
r = pakfire_step_run_script(step, PAKFIRE_SCRIPT_POSTIN);
break;
if (r)
break;
+ r = pakfire_db_add_package(db, step->package);
+ if (r)
+ break;
+
r = pakfire_step_run_script(step, PAKFIRE_SCRIPT_POSTUP);
break;
if (r)
break;
+ r = pakfire_db_remove_package(db, step->package);
+ if (r)
+ break;
+
r = pakfire_step_run_script(step, PAKFIRE_SCRIPT_POSTUN);
break;