blob f8e515c1a69b5a6a292cc3a4d387d501f1c6a3fe 759 bytes (raw)
name: vm/app/systemd-sysupdate/populate-transfer-directory # note: path name is non-authoritative(*)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
| | #!/usr/bin/env -S execlineb -WS4
# SPDX-License-Identifier: EUPL-1.2+
# SPDX-FileCopyrightText: 2025 Demi Marie Obenour <demiobenour@gmail.com>
# $1: awk script name
# $2: transfer directory
# $3: target directory
# $4: update URL
export LC_ALL C
export LANGUAGE C
backtick -N sed_rhs {
# Use awk to both validate the URL and to escape sed metacharacters.
awk -f $1 -- $4
}
export tmpdir $3
elglob -w -0 transfer_file_ ${2}/*.transfer
forx -E transfer_file { $transfer_file_ }
backtick target_basename {
basename -- $transfer_file
}
multisubstitute {
importas -iuS sed_rhs
importas -iuS target_basename
importas -iuS tmpdir
define source $transfer_file
}
redirfd -w 1 ${tmpdir}/${target_basename} sed -E -- "s#@UPDATE_URL@#${sed_rhs}#g" $source
|
debug log:
solving f8e515c1a69b5a6a292cc3a4d387d501f1c6a3fe ...
found f8e515c1a69b5a6a292cc3a4d387d501f1c6a3fe in https://inbox.spectrum-os.org/spectrum-devel/20251121-updates-v4-12-d4561c42776e@gmail.com/ ||
https://inbox.spectrum-os.org/spectrum-devel/20251119-updates-v3-12-b88a99915509@gmail.com/
applying [1/1] https://inbox.spectrum-os.org/spectrum-devel/20251121-updates-v4-12-d4561c42776e@gmail.com/
diff --git a/vm/app/systemd-sysupdate/populate-transfer-directory b/vm/app/systemd-sysupdate/populate-transfer-directory
new file mode 100755
index 0000000000000000000000000000000000000000..f8e515c1a69b5a6a292cc3a4d387d501f1c6a3fe
Checking patch vm/app/systemd-sysupdate/populate-transfer-directory...
Applied patch vm/app/systemd-sysupdate/populate-transfer-directory cleanly.
skipping https://inbox.spectrum-os.org/spectrum-devel/20251119-updates-v3-12-b88a99915509@gmail.com/ for f8e515c1a69b5a6a292cc3a4d387d501f1c6a3fe
index at:
100755 f8e515c1a69b5a6a292cc3a4d387d501f1c6a3fe vm/app/systemd-sysupdate/populate-transfer-directory
(*) Git path names are given by the tree(s) the blob belongs to.
Blobs themselves have no identifier aside from the hash of its contents.^
Code repositories for project(s) associated with this public inbox
https://spectrum-os.org/git/crosvm
https://spectrum-os.org/git/doc
https://spectrum-os.org/git/mktuntap
https://spectrum-os.org/git/nixpkgs
https://spectrum-os.org/git/spectrum
https://spectrum-os.org/git/ucspi-vsock
https://spectrum-os.org/git/www
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).