forked from the-distro/channel-scripts
Stop updating nixpkgs-channels for NixOS >= 20.09
https://github.com/NixOS/nixpkgs/issues/99257
This commit is contained in:
parent
940d71c32d
commit
7c442a2f67
|
@ -317,11 +317,14 @@ if ($dryRun) {
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
# Update the nixos-* branch in the nixpkgs repo. Also update the
|
# Update the nixos-* branch in the nixpkgs repo.
|
||||||
# nixpkgs-channels repo for compatibility.
|
|
||||||
run("git remote update origin >&2");
|
run("git remote update origin >&2");
|
||||||
run("git push origin $rev:refs/heads/$channelName >&2");
|
run("git push origin $rev:refs/heads/$channelName >&2");
|
||||||
|
|
||||||
|
# Also update the nixpkgs-channels repo for compatibility.
|
||||||
|
if ($channelName =~ /20.03/ || $channelName =~ /19.09/) {
|
||||||
run("git push channels $rev:refs/heads/$channelName >&2");
|
run("git push channels $rev:refs/heads/$channelName >&2");
|
||||||
|
}
|
||||||
|
|
||||||
sub redirect {
|
sub redirect {
|
||||||
my ($from, $to) = @_;
|
my ($from, $to) = @_;
|
||||||
|
|
Loading…
Reference in a new issue