Skip to content

Commit

Permalink
Fixed bug with sourceless rules
Browse files Browse the repository at this point in the history
Mainly affected directory dependencies.
  • Loading branch information
vercas committed Dec 27, 2016
1 parent 305173c commit 0613136
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions vmake-1.4.1-8.rockspec → vmake-1.4.2-9.rockspec
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package = "vmake"
version = "1.4.1-8"
version = "1.4.2-9"

source = {
url = "git://github.com/vercas/vMake",
tag = "v1.4.1",
tag = "v1.4.2",
}

description = {
Expand Down
14 changes: 10 additions & 4 deletions vmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ if arg then
end

local vmake, vmake__call, getEnvironment = {
Version = "1.4.1",
VersionNumber = 1004001,
Version = "1.4.2",
VersionNumber = 1004002,

Debug = false,
Silent = false,
Expand Down Expand Up @@ -3801,16 +3801,17 @@ function vmake.ConstructWorkGraph()
and src.ModificationTime <= path.ModificationTime)
or (src.IsDirectory and src.Exists) then
-- Source NOT modified after the destination? Cool!
-- Source is an existing directory? Also cool!

--MSG("Preq ", src, " of ", item, " is NOT outdated.")
-- MSG("Preq ", src, " of ", item, " is NOT outdated.")

return
end

outdated = true
-- Otherwise, this is definitely an outdated item.

--MSG("Preq ", src, " of ", item, " is outdated!")
-- MSG("Preq ", src, " of ", item, " is outdated!")

if not subFound then
-- Nothing? Means this file ought to already exist.
Expand All @@ -3826,6 +3827,11 @@ function vmake.ConstructWorkGraph()
end
end
end)
else
-- This item has no sources, therefore it is considered outdated
-- if it doesn't exist.

outdated = not path.Exists
end

setWorkEntityOutdated(item, outdated)
Expand Down

0 comments on commit 0613136

Please sign in to comment.