Compare commits
No commits in common. "master" and "v2.14.0" have entirely different histories.
|
@ -89,19 +89,11 @@ class TaskmanArtefact
|
||||||
{
|
{
|
||||||
if(!isset($this->sources_affected[$idx]))
|
if(!isset($this->sources_affected[$idx]))
|
||||||
{
|
{
|
||||||
//NOTE: more conservative implementation which always checks for staleness
|
$sources = $this->task->getFileChanges() != null ?
|
||||||
//$sources = $this->task->getFileChanges() != null ?
|
//tries to match changed files with sources spec
|
||||||
// //tries to match changed files with sources spec
|
$this->getChangedSources($idx) :
|
||||||
// $this->getChangedSources($idx) :
|
$this->getSources($idx);
|
||||||
// $this->getSources($idx);
|
$this->sources_affected[$idx] = is_stale($this->getPath(), $sources);
|
||||||
//$this->sources_affected[$idx] = is_stale($this->getPath(), $sources);
|
|
||||||
|
|
||||||
//NOTE: if there any file changes we simply check if there are any changed sources,
|
|
||||||
// and if yes then we mark the artefact as affected
|
|
||||||
if($this->task->getFileChanges() != null)
|
|
||||||
$this->sources_affected[$idx] = count($this->getChangedSources($idx)) > 0;
|
|
||||||
else
|
|
||||||
$this->sources_affected[$idx] = is_stale($this->getPath(), $this->getSources($idx));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->sources_affected[$idx];
|
return $this->sources_affected[$idx];
|
||||||
|
|
Loading…
Reference in New Issue