FreeBSD Bugzilla – Attachment 132669 Details for
Bug 177006
[PATCH] lang/perl5.12, lang/perl5.14, lang/perl5.16: Don't write to make.conf unless necessary
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
patch.txt
patch.txt (text/plain), 712 bytes, created by
Craig Leres
on 2013-03-15 23:10:00 UTC
(
hide
)
Description:
patch.txt
Filename:
MIME Type:
Creator:
Craig Leres
Created:
2013-03-15 23:10:00 UTC
Size:
712 bytes
patch
obsolete
>--- files/use.perl.orig 2013-03-15 15:43:51.000000000 -0700 >+++ files/use.perl 2013-03-15 15:44:40.000000000 -0700 >@@ -131,10 +131,19 @@ > > do_spam_make_conf() > { >- echo -n "Spamming ${MAKE_CONF}..." >- echo "$banner" >>${MAKE_CONF} >- echo "PERL_VERSION=%%PERL_VERSION%%" >>${MAKE_CONF} >- echo " Done." >+ # Only update when necessary >+ echo -n "Checking ${MAKE_CONF}..." >+ curver="`egrep '^PERL_VERSION=' ${MAKE_CONF} | tail -1`" >+ newver="PERL_VERSION=%%PERL_VERSION%%" >+ if [ "${curver}" == "${newver}" ]; then >+ echo " Ok." >+ else >+ echo " Needs updating." >+ echo -n "Spamming ${MAKE_CONF}..." >+ echo "$banner" >>${MAKE_CONF} >+ echo "${newver}" >>${MAKE_CONF} >+ echo " Done." >+ fi > } > > do_spam_manpath()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 177006
: 132669