[arch-dev-public] [Patch] makechrootpkg: fixed copying of .install file to chroot for split packages

Eric Bélanger snowmaniscool at gmail.com
Mon Aug 31 18:36:29 UTC 2009


Hi,

here's a patch to  fix the copying of .install file to chroot for
split packages. There is a flyspray task open for this but as it's
down, I'm sending the patch here

Eric

--- ../devtools.git/makechrootpkg       2009-08-29 18:36:31.000000000 -0400
+++ makechrootpkg       2009-08-29 18:35:04.000000000 -0400
@@ -193,6 +193,13 @@
 done

 install_files=$(grep "install=" PKGBUILD)
+for pkg in ${pkgname[@]}; do
+    install_files+=' '
+    install_files+=$(echo $install_files |sed "s/\$pkgname/$pkg/"|sed
"s/\${pkgname}/$pkg/")
+done
+
+install_files=$(eval echo $install_files |tr '[:blank:]' '\n'|sort |uniq)
+
 for f in $install_files;do
     install="${f#"install="}"
     if [ "$install" != "" -a -f "$install" ]; then
-------------- next part --------------
A non-text attachment was scrubbed...
Name: makechrootpkg-install.patch
Type: text/x-patch
Size: 539 bytes
Desc: not available
URL: <http://www.archlinux.org/pipermail/arch-dev-public/attachments/20090831/345f8d5a/attachment.bin>


More information about the arch-dev-public mailing list