mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
fetchurl: Ensure that ‘urls’ is a list
This commit is contained in:
parent
7a51e17775
commit
83ca2c272a
@ -66,6 +66,7 @@ in
|
||||
showURLs ? false
|
||||
}:
|
||||
|
||||
assert builtins.isList urls;
|
||||
assert urls != [] -> url == "";
|
||||
assert url != "" -> urls == [];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user