From 3b361af7681125e7db98a9e4e69c80d469cae256 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 20 Mar 2020 12:54:18 +0200 Subject: Don't install ad hoc members with nonexistent timestamp --- libbuild2/install/rule.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libbuild2/install/rule.cxx b/libbuild2/install/rule.cxx index f1d8b8f..8a5d174 100644 --- a/libbuild2/install/rule.cxx +++ b/libbuild2/install/rule.cxx @@ -982,7 +982,7 @@ namespace build2 { if (const file* mf = m->is_a ()) { - if (!mf->path ().empty ()) + if (!mf->path ().empty () && mf->mtime () != timestamp_nonexistent) { if (const path* p = lookup_install (*mf, "install")) { @@ -1252,7 +1252,7 @@ namespace build2 if (!tp.empty ()) r |= uninstall_target (t, cast (t["install"]), 1); - // Then installable ad hoc group members, if any. To be anally precise + // Then installable ad hoc group members, if any. To be anally precise, // we would have to do it in reverse, but that's not easy (it's a // single-linked list). // @@ -1260,7 +1260,7 @@ namespace build2 { if (const file* mf = m->is_a ()) { - if (!mf->path ().empty ()) + if (!mf->path ().empty () && mf->mtime () != timestamp_nonexistent) { if (const path* p = lookup_install (*m, "install")) { -- cgit v1.1