+2008-03-25 Ian Jackson <ian@davenant.greenend.org.uk>
+
+ * lib/dpkg-db.h (modstatdb_note_ifwrite): New prototype.
+ * ib/dbmodify.c (modstatdb_note_ifwrite): New function.
+
2008-03-25 Ian Jackson <ian@davenant.greenend.org.uk>
* src/archives.c (archivefiles): Call log_message.
onerr_abort--;
}
+void
+modstatdb_note_ifwrite(struct pkginfo *pkg)
+{
+ if (cstatus >= msdbrw_write)
+ modstatdb_note(pkg);
+}
+
const char *pkgadminfile(struct pkginfo *pkg, const char *whichfile) {
static struct varbuf vb;
varbufreset(&vb);
enum modstatdb_rw modstatdb_init(const char *admindir, enum modstatdb_rw reqrwflags);
void modstatdb_note(struct pkginfo *pkg);
+void modstatdb_note_ifwrite(struct pkginfo *pkg);
void modstatdb_checkpoint(void);
void modstatdb_shutdown(void);