[HF Pipeline Improv] 1/7 add scripts to modify debian in session alike fashion
add helpers for debian package modifications. One can use such helpers in session like approach :
SESSION_DIR=$(mktemp -d)
# Resolve absolute paths
DEB_FILE_ABS=$(readlink -f "$DEB_FILE")
# Open the debian package for modifications
echo "=== Step 1: Opening Debian Package ==="
./scripts/debian/session/deb-session-open.sh "$DEB_FILE_ABS" "$SESSION_DIR"
# Add single file
echo "test" > test.txt
./scripts/debian/session/deb-session-insert.sh "$SESSION_DIR" \
"/var/lib/coda/" \
test.txt
# Rename package to add -test suffix
./scripts/debian/session/deb-session-rename-package.sh "$SESSION_DIR" "$NEW_PACKAGE_NAME"
# Saving modified package
./scripts/debian/session/deb-session-save.sh "$SESSION_DIR" "$OUTPUT_DEB_FILE" --verify
!ci-build-me
@SanabriaRusso you just started AI war (claude vs copilot) :D
I think comments are valid and resolutions pretty straightforward. Wdyt? @dkijania
Yes! I will tell Claude to fix them
!ci-build-me
It'd be nice to add a test for this.
For example create a package that read a file and print it. And then patch that package, and run the package to see if the patch is working.
That'll give us more confidence. I'm not very familiar with debian packaging, but I think if you could provide a unit test, I'm happy to approve.
!ci-build-me
!ci-build-me