Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 385655

Summary: webapp - allow multiple messages
Product: Gentoo Linux Reporter: Alon Bar-Lev <alon.barlev>
Component: EclassesAssignee: Gentoo Web Application Packages Maintainers <web-apps>
Status: UNCONFIRMED ---    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Alon Bar-Lev 2011-10-04 19:41:05 UTC
Hello,

Current webapp.eclass has two functions: webapp_postinst_txt, webapp_postupgrade_txt

These are capable of accepting single file for insttructions.

However there is a use (USE) case that requires supporting multiple files.

Example:

webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
use sdk && webapp_postinst_txt en "${FILESDIR}"/postinstall-sdk-en.txt

Please consider:
-    cp "${2}" "${D}/${MY_APPDIR}/postinst-${1}.txt"
+    cat ${2}" >> "${D}/${MY_APPDIR}/postinst-${1}.txt"