- figure_deps(filename, op, &hash[h].key, user, hash[h].num_users,
- num);
+ if (!figure_deps(filename, op, &hash[h].key, &tdb_null, user,
+ hash[h].num_users, num)) {
+ const TDB_DATA *data;
+
+ data = preexisting_data(filename, op, &hash[h].key,
+ user, hash[h].num_users);
+ /* Give the first op what it wants: does that help? */
+ if (!figure_deps(filename, op, &hash[h].key, data, user,
+ hash[h].num_users, num))
+ fail(filename[user[0].file], user[0].op_num+1,
+ "Could not resolve inter-dependencies");
+ if (tdb_store(tdb, hash[h].key, *data, TDB_INSERT) != 0)
+ errx(1, "Could not store initial value");
+ }