Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 92198 - webapp-config uses tempfiles
Summary: webapp-config uses tempfiles
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Highest major (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-10 15:32 UTC by SpanKY
Modified: 2005-05-30 02:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2005-05-10 15:32:05 UTC
webapp-config shouldnt need to use /tmp or tempfiles

the fn_remove_emptylines() function can be rewritten in one line:
fn_remove_emptylines ()
{
    sed -i -e '/^$/d' "$1"
}

the fn_show_postinst() function is a bit trickier and i really have no idea how it works exactly, but i'm pretty sure it too can be rewritten to not use temp files ... how's this ?
fn_show_postinst ()
{
    if [ ! -f "${MY_APPDIR}/postinst-en.txt" ]; then
        return
    fi

    fn_run_vars

    echo
    eval echo $(<"${MY_APPDIR}/postinst-en.txt")
    echo
}
Comment 1 Stuart Herbert (RETIRED) gentoo-dev 2005-05-30 02:15:01 UTC
Thanks.  I've added those into webapp-config; they'll appear in webapp-config-
1.10-r15.

Best regards,
Stu