aboutsummaryrefslogtreecommitdiff
path: root/serialize.go
diff options
context:
space:
mode:
authorFumitoshi Ukai <fumitoshi.ukai@gmail.com>2015-06-25 00:10:52 +0900
committerFumitoshi Ukai <fumitoshi.ukai@gmail.com>2015-06-25 11:37:49 +0900
commit744bb2b8d146eaba4d073cf58e35a60903e06de8 (patch)
tree15d5c79f4e62428b3c427d0ce15e0076a92139de /serialize.go
parent44ae8cfdc153dd1a209b16453d5dbaa8b4f199d7 (diff)
downloadkati-744bb2b8d146eaba4d073cf58e35a60903e06de8.tar.gz
go gettable for github.com/google/kati
Diffstat (limited to 'serialize.go')
-rw-r--r--serialize.go6
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)