diff options
author | Fumitoshi Ukai <fumitoshi.ukai@gmail.com> | 2015-06-25 00:10:52 +0900 |
---|---|---|
committer | Fumitoshi Ukai <fumitoshi.ukai@gmail.com> | 2015-06-25 11:37:49 +0900 |
commit | 744bb2b8d146eaba4d073cf58e35a60903e06de8 (patch) | |
tree | 15d5c79f4e62428b3c427d0ce15e0076a92139de /serialize.go | |
parent | 44ae8cfdc153dd1a209b16453d5dbaa8b4f199d7 (diff) | |
download | kati-744bb2b8d146eaba4d073cf58e35a60903e06de8.tar.gz |
go gettable for github.com/google/kati
Diffstat (limited to 'serialize.go')
-rw-r--r-- | serialize.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/serialize.go b/serialize.go index 8ed60d2..2b8c45c 100644 --- a/serialize.go +++ b/serialize.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package main +package kati import ( "bytes" @@ -290,7 +290,7 @@ func DumpDepGraphCache(g *DepGraph, roots []string) { cacheFile := GetCacheFilename(g.readMks[0].Filename, roots) for _, mk := range g.readMks { // Inconsistent, do not dump this result. - if mk.State == 2 { + if mk.State == FileInconsistent { if exists(cacheFile) { os.Remove(cacheFile) } @@ -551,7 +551,7 @@ func showSerializedGraphStats(g SerializableGraph) { } func DeserializeGraph(g SerializableGraph) *DepGraph { - if katiLogFlag || katiStatsFlag { + if LogFlag || StatsFlag { showSerializedGraphStats(g) } nodes := DeserializeNodes(g) |