mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
libutil: Throw if str("contents") not found
This was broken in7aa3e7e3a5(since 2.25). (cherry picked from commit242f362567)
This commit is contained in:
parent
f2b45e014b
commit
d9601db10d
1 changed files with 4 additions and 2 deletions
|
|
@ -187,8 +187,10 @@ static void parse(FileSystemObjectSink & sink, Source & source, const CanonPath
|
|||
tag = getString();
|
||||
}
|
||||
|
||||
if (tag == "contents")
|
||||
parseContents(crf, source);
|
||||
if (tag != "contents")
|
||||
throw badArchive("expected tag 'contents', got '%s'", tag);
|
||||
|
||||
parseContents(crf, source);
|
||||
|
||||
expectTag(")");
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue