aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/install
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-03-20 12:54:18 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-03-20 12:54:18 +0200
commit3b361af7681125e7db98a9e4e69c80d469cae256 (patch)
tree62310186da75961aba789d7f90cb0d14a30419b1 /libbuild2/install
parentda89d944bbc3cca9fd36a4a360f94023134a9a8c (diff)
Don't install ad hoc members with nonexistent timestamp
Diffstat (limited to 'libbuild2/install')
-rw-r--r--libbuild2/install/rule.cxx6
1 files 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<file> ())
{
- if (!mf->path ().empty ())
+ if (!mf->path ().empty () && mf->mtime () != timestamp_nonexistent)
{
if (const path* p = lookup_install<path> (*mf, "install"))
{
@@ -1252,7 +1252,7 @@ namespace build2
if (!tp.empty ())
r |= uninstall_target (t, cast<path> (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<file> ())
{
- if (!mf->path ().empty ())
+ if (!mf->path ().empty () && mf->mtime () != timestamp_nonexistent)
{
if (const path* p = lookup_install<path> (*m, "install"))
{