File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2- # SPDX-License-Identifier: Apache-2.0
3-
41Package: openshell
52Version: @VERSION@
63Architecture: @ARCH@
Original file line number Diff line number Diff line change 1+ SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+ SPDX-License-Identifier: Apache-2.0
Original file line number Diff line number Diff line change 6060 "scripts/bin/openshell" : "#" ,
6161}
6262
63- # Strict JSON does not support comments. Keep SPDX data in REUSE-compatible
64- # sidecars so these files remain valid inputs to their consumers .
63+ # Some consumer formats do not support comments. Keep SPDX data in
64+ # REUSE-compatible sidecars so these files remain valid inputs.
6565SIDECAR_LICENSE_FILES : set [str ] = {
66+ "deploy/deb/control.in" ,
6667 "scripts/keycloak-realm.json" ,
6768 "sdk/conformance/oauth-client-credentials.json" ,
6869 "sdk/typescript/biome.json" ,
Original file line number Diff line number Diff line change @@ -38,11 +38,25 @@ assert_file_exists() {
3838}
3939
4040service=" ${ROOT} /deploy/deb/openshell-gateway.service"
41+ control=" ${ROOT} /deploy/deb/control.in"
4142spec=" ${ROOT} /openshell.spec"
4243
4344assert_file_exists " $service "
45+ assert_file_exists " $control "
4446assert_file_exists " $spec "
4547
48+ # Debian control files are RFC822-style metadata. Older dpkg-deb releases
49+ # reject comment lines as malformed fields, so keep SPDX metadata in the
50+ # adjacent .license sidecar instead of emitting it into DEBIAN/control.
51+ if grep -Eq ' ^[[:space:]]*#' " $control " ; then
52+ echo " FAIL: Debian control template contains a comment field" >&2
53+ exit 1
54+ fi
55+ if [[ $( sed -n ' /[^[:space:]]/ { p; q; }' " $control " ) != " Package: openshell" ]]; then
56+ echo " FAIL: Debian control template must begin with the Package field" >&2
57+ exit 1
58+ fi
59+
4660assert_contains \
4761 " $service " \
4862 ' Environment=OPENSHELL_LOCAL_TLS_DIR=%h/.local/state/openshell/tls'
You can’t perform that action at this time.
0 commit comments