fetchurl: Ensure that ‘urls’ is a list

This commit is contained in:
Eelco Dolstra 2014-02-19 13:36:39 +01:00
parent 7a51e17775
commit 83ca2c272a

View File

@ -66,6 +66,7 @@ in
showURLs ? false
}:
assert builtins.isList urls;
assert urls != [] -> url == "";
assert url != "" -> urls == [];