[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [PATCH] Factor out common code for reloading database files



On 17.03.24 08:27, Simon Richter wrote:

---
  lib/dpkg/Makefile.am        |  1 +
  lib/dpkg/db-fsys-common.c   | 87 +++++++++++++++++++++++++++++++++++++
  lib/dpkg/db-fsys-divert.c   | 43 ++++--------------
  lib/dpkg/db-fsys-override.c | 50 +++++----------------
  lib/dpkg/dpkg-db.h          | 13 ++++++
  5 files changed, 120 insertions(+), 74 deletions(-)
  create mode 100644 lib/dpkg/db-fsys-common.c

FWIW, this also needs translation changes, but for that the general direction needs to be useful. I think it is because it merges duplicated code, and it will be even more useful when I add a third file there.

   Simon


Reply to: