[Mageia-webteam] [Bug 72] default page doesn't redirect to website

Ahmad Samir bugzilla-daemon at mageia.org
Wed Mar 30 01:16:36 CEST 2011


https://bugs.mageia.org/show_bug.cgi?id=72

--- Comment #15 from Ahmad Samir <ahmadsamir3891 at gmail.com> 2011-03-30 01:16:36 UTC ---
The logic is wrong in the spec:
# add a default 
cat %buildroot/%_datadir/indexhtml/index.html | \
    sed "s/#PRODUCT_ID//" | \
    sed "s/#LANG/en/g" \
    > tmpfile
mv tmpfile %buildroot/%_datadir/indexhtml/index.html

%post
# done to prevent excludedocs to ignore the doc/HTML
mkdir -p  %_datadir/indexhtml
sed -i "s/#PRODUCT_ID/`cat /etc/product.id`/" \
    -i sed "s/#PRODUCT_ID/`cat /etc/product.id`/" \
    -i sed sed "s/#LANG/${LC_NAME/[-_]*}/g" \
%_datadir/indexhtml/index.html

in %post, %_datadir/indexhtml/index.html doesn't have #PRODUCT_ID or #LANG,
they were already replaced in "add a default" in that same file.

-- 
Configure bugmail: https://bugs.mageia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Mageia-webteam mailing list