Skip to content

Commit b6c0490

Browse files
committed
mirror-nixos-branch.pl: Call index-debuginfo
1 parent fcd6250 commit b6c0490

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mirror-nixos-branch.pl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,15 @@ sub fetch {
149149
downloadFile("tarball", "nixexprs.tar.xz");
150150
}
151151

152-
# Generate the programs.sqlite database and put it in nixexprs.tar.xz.
152+
# Generate the programs.sqlite database and put it in
153+
# nixexprs.tar.xz. Also maintain the debug info repository at
154+
# https://cache.nixos.org/debuginfo.
153155
if ($channelName =~ /nixos/ && -e "$tmpDir/store-paths") {
154156
File::Path::make_path("$tmpDir/unpack");
155157
system("tar", "xfJ", "$tmpDir/nixexprs.tar.xz", "-C", "$tmpDir/unpack") == 0 or die;
156158
my $exprDir = glob("$tmpDir/unpack/*");
157159
system("generate-programs-index $filesCache $exprDir/programs.sqlite http://nix-cache.s3.amazonaws.com/ $tmpDir/store-paths $exprDir/nixpkgs") == 0 or die;
160+
system("index-debuginfo $filesCache s3://nix-cache $tmpDir/store-paths") == 0 or die;
158161
system("rm -f $tmpDir/nixexprs.tar.xz $exprDir/programs.sqlite-journal") == 0 or die;
159162
unlink("$tmpDir/nixexprs.tar.xz.sha256");
160163
system("tar", "cfJ", "$tmpDir/nixexprs.tar.xz", "-C", "$tmpDir/unpack", basename($exprDir)) == 0 or die;

0 commit comments

Comments
 (0)