[arch-dev-public] [Patch] makechrootpkg: fixed support for splitted package

Eric Bélanger snowmaniscool at gmail.com
Sun Aug 9 22:01:14 EDT 2009


On Fri, Aug 7, 2009 at 2:19 AM, Eric Bélanger<snowmaniscool at gmail.com> wrote:
> Hi,
>
> Here (inline and attached) are a couple of patches for makechrootpkg.
>


Here's a second patch.  It fixes the copying of the package from the
chroot when the pkgver or pkgrel are different (e.g. device-mapper &
lvm2) :

--- /usr/sbin/makechrootpkg     2009-08-06 23:44:28.000000000 -0400
+++ makechrootpkg       2009-08-09 21:57:39.000000000 -0400
@@ -230,7 +230,7 @@
     source ${WORKDIR}/PKGBUILD

     for _pkgname in ${pkgname[@]}; do
-       pkgfile="${chrootdir}"/union/pkgdest/${_pkgname}-${pkgver}-${pkgrel}-*${PKGEXT}
+       pkgfile="${chrootdir}"/union/pkgdest/${_pkgname}-*${PKGEXT}

        if [ -n "$add_to_db" -a -e "$pkgfile" ]; then
             [ -d "${chrootdir}/union/repo" ] || mkdir -p
"${chrootdir}/union/repo"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: makechrootpkg.split2.patch
Type: text/x-patch
Size: 488 bytes
Desc: not available
URL: <http://www.archlinux.org/pipermail/arch-dev-public/attachments/20090809/df821f6f/attachment.bin>


More information about the arch-dev-public mailing list