From b9827cc18b749f5642d40d40f7327ff7a720818b Mon Sep 17 00:00:00 2001 From: Jochen Sprickerhof Date: Mon, 26 Sep 2022 21:35:38 +0200 Subject: [PATCH] Move maintainer script to the libloc1 package This makes sure that libloc1 can find the database from the libloc-database package without needing to install the location package. Also, as the location package transitively depends on libloc1, this makes sure that /var/lib/location/ is cleaned up in case the cronjob in the location package downloaded a database dump. Also make libloc1 recommend libloc-database | location to make sure some database is available by default. But don't make it a hard dependency as one can provide a different path to libloc1 and also it would be a cyclic dependency for the location package. --- debian/control | 4 ++-- debian/{location.postinst => libloc1.postinst} | 0 debian/{location.postrm => libloc1.postrm} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename debian/{location.postinst => libloc1.postinst} (100%) rename debian/{location.postrm => libloc1.postrm} (100%) diff --git a/debian/control b/debian/control index 23e8cee..0552a84 100644 --- a/debian/control +++ b/debian/control @@ -35,6 +35,8 @@ Section: libs Depends: ${shlibs:Depends}, ${misc:Depends}, +Recommends: + libloc-database | location, Multi-Arch: same Description: ${source:Synopsis} ${source:Extended-Description} @@ -80,8 +82,6 @@ Replaces: Breaks: location-python (<< 0.9.14-1~), location-importer (<< 0.9.14-1~), -Recommends: - libloc-database, Multi-Arch: foreign Description: ${source:Synopsis} (Python 3 bindings) ${source:Extended-Description} diff --git a/debian/location.postinst b/debian/libloc1.postinst similarity index 100% rename from debian/location.postinst rename to debian/libloc1.postinst diff --git a/debian/location.postrm b/debian/libloc1.postrm similarity index 100% rename from debian/location.postrm rename to debian/libloc1.postrm -- 2.47.2