}
depInfo.ifcreates = append(depInfo.ifcreates, dep)
case DepTypeIfchange:
+ dep := m["Target"]
+ if dep == "" {
+ return nil, ErrBadRecFormat
+ }
inode, err := inodeFromRec(m)
if err != nil {
log.Print(err)
}
hsh := mustHexDecode(m["Hash"])
depInfo.ifchanges = append(depInfo.ifchanges, DepInfoIfchange{
- tgt: m["Target"], inode: inode, hash: hsh,
+ tgt: dep, inode: inode, hash: hsh,
})
case DepTypeStamp:
hsh := m["Hash"]