Hi,
this morning I decided to try debcraft improve on my aide package. While
it was running, I got preempted and ended up resetting my git repository
to the state before debcraft improve was run.
In the afternoon, I came back to debcraft and aide and now the shell
check part of debcraft errors out since it wants to apply a patch that
was applied previously (which cannot be the case since I git reset
the repo). Anyway, the run stalls with:
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
2 out of 2 hunks ignored -- saving rejects to file debian/bin/buildcache.rej
DEBCRAFT ERROR: Unresolvable issues found - please read the output above carefully
The script is fine though, shellchecck debian/bin/buildcache doesn't
show anything, buildcache.rej is empty, and the diff to
debian/bin/buildcache is tiny any makes sense:
diff --git a/debian/bin/buildcache b/debian/bin/buildcache
index 5d8912e5..4131240c 100755
--- a/debian/bin/buildcache
+++ b/debian/bin/buildcache
@@ -32,9 +32,9 @@ set -C
# TODO: parse DIR from configuration file
DIR="/var/lib/aide"
AIDEUSER="_aide"
-mkdir -p "$DIR"
-TEMPFILE=$(mktemp "$DIR/tmp.XXXXXX")
-CACHEFILE="$DIR/10_aide_rootrules_cache"
+mkdir -p "${DIR}"
+TEMPFILE=$(mktemp "${DIR}/tmp.XXXXXX")
+CACHEFILE="${DIR}/10_aide_rootrules_cache"
NOW="$(date --iso-8601=seconds)"
SCRIPT="/etc/aide/aide.conf.d/10_aide_lvm_needsroot"
Now, what is going wrong here?
Deleting the debcraft podman containers and ~/.cache/debcraft don't
change that. I am attaching the shell log of the debcraft improve run.
Am I holding it wrong?
Greetings
Marc