mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-29 09:06:15 +02:00
nix-channel: Fix --update <CHANNELS>
This unbreaks "nixos-rebuild --upgrade".
This commit is contained in:
parent
349e988903
commit
7ee43df862
1 changed files with 2 additions and 2 deletions
|
@ -76,10 +76,10 @@ static void update(const StringSet & channelNames)
|
||||||
// Download each channel.
|
// Download each channel.
|
||||||
auto exprs = Strings{};
|
auto exprs = Strings{};
|
||||||
for (const auto & channel : channels) {
|
for (const auto & channel : channels) {
|
||||||
if (!channelNames.empty() && channelNames.find(channel.first) != channelNames.end())
|
|
||||||
continue;
|
|
||||||
auto name = channel.first;
|
auto name = channel.first;
|
||||||
auto url = channel.second;
|
auto url = channel.second;
|
||||||
|
if (!(channelNames.empty() || channelNames.count(name)))
|
||||||
|
continue;
|
||||||
|
|
||||||
// We want to download the url to a file to see if it's a tarball while also checking if we
|
// We want to download the url to a file to see if it's a tarball while also checking if we
|
||||||
// got redirected in the process, so that we can grab the various parts of a nix channel
|
// got redirected in the process, so that we can grab the various parts of a nix channel
|
||||||
|
|
Loading…
Reference in a new issue