summaryrefslogtreecommitdiffstats
path: root/debian/salsa-ci.yml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 17:29:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 17:29:55 +0000
commitfd5e5f0288882f2c232b11e1a86a59a988ea25f6 (patch)
treef282b9d7906f52117728215a599fa6d8f2795377 /debian/salsa-ci.yml
parentAdding upstream version 1.66. (diff)
downloadinit-system-helpers-fd5e5f0288882f2c232b11e1a86a59a988ea25f6.tar.xz
init-system-helpers-fd5e5f0288882f2c232b11e1a86a59a988ea25f6.zip
Adding debian version 1.66.debian/1.66debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--debian/salsa-ci.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/debian/salsa-ci.yml b/debian/salsa-ci.yml
new file mode 100644
index 0000000..373dc2a
--- /dev/null
+++ b/debian/salsa-ci.yml
@@ -0,0 +1,32 @@
+---
+include:
+ - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/recipes/debian.yml
+
+variables:
+ SALSA_CI_PIUPARTS_ARGS: --scriptsdir $CI_PROJECT_DIR/piuparts_scriptdir
+
+# salsaci calls piuparts with a package as a filename in contrast to
+# piuparts.d.o which calls piuparts with package=version. This means that the
+# shell parameter expansion ${PIUPARTS_OBJECTS%%=*} in
+# /etc/piuparts/scripts/pre_remove_exceptions never matches and thus
+# APT::Get::allow-remove-essential will not get enabled for "init"
+piuparts:
+ extends: .test-piuparts
+ before_script:
+ - mkdir -p $CI_PROJECT_DIR/piuparts_scriptdir
+ - |
+ cat > $CI_PROJECT_DIR/piuparts_scriptdir/pre_remove_exceptions2 <<EOT
+ #!/bin/sh
+ set -exu
+ echo 'Debug: pre_remove_exceptions2'
+ echo 'APT::Get::allow-remove-essential "true";' >> /etc/apt/apt.conf.d/piuparts-allow-remove-essential
+ EOT
+ - chmod +x $CI_PROJECT_DIR/piuparts_scriptdir/pre_remove_exceptions2
+ - |
+ cat > $CI_PROJECT_DIR/piuparts_scriptdir/post_remove_exceptions2 <<EOT
+ #!/bin/sh
+ set -exu
+ echo 'Debug: post_remove_exceptions2'
+ rm -f /etc/apt/apt.conf.d/piuparts-allow-remove-essential
+ EOT
+ - chmod +x $CI_PROJECT_DIR/piuparts_scriptdir/post_remove_exceptions2