Looking through old emails.

I see this was done on purpose... Just the opposite of your change, way back when..

http://cvs.sourceforge.net/viewcvs.py/fink/fink/perlmod/Fink/ FinkVersion.pm.in?r1=1.5&r2=1.6


Invesigating this i noticed the Basepath: missing error message does not work:


% fink index
Use of uninitialized value in concatenation (.) or string at /sw/lib/perl5/Fink/Config.pm line 123.
Basepath not set in config file ""



Also with the old code, it looks like fink would have been able to print its version and not spew errors when the basepath was not in the conf file. Now it spews:


% fink --Version
Package manager version: 0.17.1.cvs
Use of uninitialized value in concatenation (.) or string at /sw/lib/perl5/Fink/FinkVersion.pm line 85.
Use of uninitialized value in concatenation (.) or string at /sw/lib/perl5/Fink/FinkVersion.pm line 85.
Distribution version: unknown


Copyright (c) 2001 Christoph Pfisterer
Copyright (c) 2001-2003 The Fink Package Manager Team
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.


-Ben


On Nov 12, 2003, at 11:23 PM, Michael G Schwern wrote:

Fink::FinkVersion.pm is generated from perlmod/Fink/FinkVersion.pm.in. It
only has two variables. @VERSION@ and @[EMAIL PROTECTED] @VERSION@ I can
understand, it comes from the VERSION file and is set at build time. But
@BASEPATH@ is in fink.conf and can be gotten from Fink::Config.


Is there any reason why Fink::FinkVersion needs to have its basepath
hardcoded and can't just use $Fink::Config::basepath like everything else?
There doesn't seem to be any circular dependencies between Fink::Config and
Fink::FinkVersion.


I'm trying to see if I can build Fink::FinkVersion without having to run
inject.pl.



--
Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern/
Let me check my notes.
http://www.sluggy.com



------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel




------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to