aboutsummaryrefslogtreecommitdiff
path: root/releng/create_release.xsh
diff options
context:
space:
mode:
authorJade Lovelace <lix@jade.fyi>2024-06-11 20:42:50 -0700
committerJade Lovelace <lix@jade.fyi>2024-06-12 15:34:23 -0700
commitd0b28f0e7429cbde81e881c7fda51df6ee0819b0 (patch)
tree33597e3bda27888e7e572544f72addbba1ad14e2 /releng/create_release.xsh
parent38e4e6963305ce6831971071455379b6e5b8619f (diff)
releng: fix docs upload
There were two bugs I found: 1. If the build isn't already done in the store, nix-store --realise does not know how to build it. You have to just give it the derivation and I guess it will realise all outputs, which is fine. 2. cp without -T will not overwrite an existing manual directory, creating a path manual/manual. Change-Id: Ibebfd136a266da5330944a985e636ebb776f1909
Diffstat (limited to 'releng/create_release.xsh')
-rw-r--r--releng/create_release.xsh6
1 files changed, 3 insertions, 3 deletions
diff --git a/releng/create_release.xsh b/releng/create_release.xsh
index 94c78a83f..b51a3ad23 100644
--- a/releng/create_release.xsh
+++ b/releng/create_release.xsh
@@ -275,11 +275,11 @@ def do_tag_merge(force_tag=False, no_check_git=False):
def build_manual(eval_result):
- manual = next(x['outputs']['doc'] for x in eval_result if x['attr'] == 'build.x86_64-linux')
+ (drv, manual) = next((x['drvPath'], x['outputs']['doc']) for x in eval_result if x['attr'] == 'build.x86_64-linux')
print('[+] Building manual')
- realise([manual])
+ realise([drv])
- cp --no-preserve=mode -vr @(manual)/share/doc/nix @(MANUAL)
+ cp --no-preserve=mode -T -vr @(manual)/share/doc/nix/manual @(MANUAL)
def upload_manual(env: RelengEnvironment):