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 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dh_runit') 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); } -- cgit v1.2.3