[Piuparts-devel] Bug#1015732: piuparts: scripts/pre_install_database-server doesn't work when piuparts is fed a .changes or .deb

Guilhem Moulin guilhem at debian.org
Tue Jul 19 22:42:47 BST 2022


Package: piuparts
Version: 1.1.5
Severity: normal
File: /etc/piuparts/scripts/pre_install_database-server
Tags: patch

Dear Maintainer,

Piuparts scripts in /etc/piuparts/scripts/* case match over ${PIUPARTS_OBJECTS%%=*}, which
works on piuparts.d.o (which calls piuparts with `--apt ${PKGNAME}=${VERSION}`) but not on
salsa ci (since it calls piuparts with `/path/to/${PKGNAME}_${VERSION}_${ARCH}.deb`).  I
think the script also doesn't work when a .change or when multiple packages are supplied.

I attach a PoC patch which fixes the problem for me, but I believe other scripts are
affected as well.  I can submit a file for other scripts too but but I'm unsure the
proposed the logic is the way to go.

Thanks for maintaining piuparts!
-- 
Guilhem.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pre_install_database-server.patch
Type: text/x-diff
Size: 14834 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/piuparts-devel/attachments/20220719/5d4f9b18/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/piuparts-devel/attachments/20220719/5d4f9b18/attachment.sig>


More information about the Piuparts-devel mailing list