From 9896a453b092edfc871450389569315ef72fd767 Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Tue, 28 May 2019 04:35:57 +0000 Subject: Change path of "noreplace" flag file First of all, "noreplace" flag file is architecture-independent and is not meant to be edited by system administrator, so it does not belong to /var. New namings scheme provides more options for extensibility, i.e introducing more flag files. While it is definitely not good thing to have, it seems, unfortunately, necessary to support, e.g uninstalled-not-purged situation. --- dh_runit | 4 ++-- t/928935.t | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dh_runit b/dh_runit index 4c9820e..3f45866 100755 --- a/dh_runit +++ b/dh_runit @@ -62,8 +62,8 @@ PKG: foreach my $pkg (@{$dh{DOPACKAGES}}) { my $name = $conf->{name} || basename($path); if ($conf->{noreplace}) { - make_path("${tmp}/var/lib/runit/noreplace/"); - open(my $fh, ">", "${tmp}/var/lib/runit/noreplace/${name}") + make_path("${tmp}/usr/share/runit/meta/${name}/"); + open(my $fh, ">", "${tmp}/usr/share/runit/meta/${name}/noreplace") || die $!; close($fh); } diff --git a/t/928935.t b/t/928935.t index e31756b..52774ed 100644 --- a/t/928935.t +++ b/t/928935.t @@ -6,5 +6,5 @@ use T; system_ok('dh_runit', 'debian/test.runscript', 'name=test,noreplace'); -my $noreplace = 'debian/dh-runit-test/var/lib/runit/noreplace/test'; +my $noreplace = 'debian/dh-runit-test/usr/share/runit/meta/test/noreplace'; ok(-f $noreplace, 'noreplace file correctly created'); -- cgit v1.2.3