Update of /cvsroot/fink/fink
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3355

Modified Files:
        ChangeLog bootstrap.pl bootstrap.sh 
Removed Files:
        BINDISTS 
Log Message:
find the default name for the binary distribution using the new 
default_binary_version function from FinkVersion.pm


Index: bootstrap.pl
===================================================================
RCS file: /cvsroot/fink/fink/bootstrap.pl,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -d -r1.74 -r1.75
--- bootstrap.pl        12 Mar 2006 00:53:32 -0000      1.74
+++ bootstrap.pl        21 Mar 2006 23:11:02 -0000      1.75
@@ -64,7 +64,7 @@
 require Fink::Bootstrap;
 import Fink::Bootstrap qw(&check_host &check_files);
 require Fink::FinkVersion;
-import Fink::FinkVersion qw(&fink_version);
+import Fink::FinkVersion qw(&fink_version &default_binary_version);
 
 my $res = check_files();
 if( $res == 1 ) {
@@ -434,16 +434,7 @@
 my $endmsg = "Internal error.";
 
 chdir $homebase;
-my %bindists;
-if (-f "BINDISTS") {
-                open(IN,"BINDISTS") or die "Can't open BINDISTS: $!";
-                while(<IN>) {
-                                       chomp;
-                                       /(.*):\s*(.*)/;
-                                       $bindists{$1} = $2;
-                }
-                close(IN);
-                       }
+my $dbv = default_binary_version($distribution);
 if (-d "pkginfo") {
        if (&execute("cd pkginfo && ./inject.pl $installto -quiet")) {
                # inject failed
@@ -454,8 +445,8 @@
 compile packages yourself.
 You can get them
 EOF
-if (defined($bindists{$distribution})) {
-$endmsg .= "by installing the 
dists-$distribution-$bindists{$distribution}.tar.gz
+if (not $dbv eq "none") {
+$endmsg .= "by installing the dists-$distribution-$dbv.tar.gz
 tarball, or";
 }
                $endmsg .= " by running the command 'fink selfupdate'.";
@@ -472,8 +463,8 @@
 You still need package descriptions if you want to compile packages yourself.
 You can get them
 EOF
-if (defined($bindists{$distribution})) {
-$endmsg .= "by installing the 
dists-$distribution-$bindists{$distribution}.tar.gz
+if (not $dbv eq "none") {
+$endmsg .= "by installing the dists-$distribution-$dbv.tar.gz
 tarball, or";
 }
        $endmsg .= " by running the command 'fink selfupdate'.";

Index: bootstrap.sh
===================================================================
RCS file: /cvsroot/fink/fink/bootstrap.sh,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- bootstrap.sh        3 Jan 2006 20:14:46 -0000       1.9
+++ bootstrap.sh        21 Mar 2006 23:11:02 -0000      1.10
@@ -49,10 +49,12 @@
 
 ### create FinkVersion.pm for bootstrap
 
-if [ ! -f perlmod/Fink/FinkVersion.pm ]; then
+if [ -f perlmod/Fink/FinkVersion.pm ]; then
+  rm -f perlmod/Fink/FinkVersion.pm
+fi
   version=`cat VERSION`
   sed -e "s|@VERSION@|$version|g" <perlmod/Fink/FinkVersion.pm.in 
>perlmod/Fink/FinkVersion.pm
-fi
+
 
 ### start bootstrap.pl
 

--- BINDISTS DELETED ---

Index: ChangeLog
===================================================================
RCS file: /cvsroot/fink/fink/ChangeLog,v
retrieving revision 1.408
retrieving revision 1.409
diff -u -d -r1.408 -r1.409
--- ChangeLog   20 Mar 2006 04:32:56 -0000      1.408
+++ ChangeLog   21 Mar 2006 23:11:02 -0000      1.409
@@ -1,3 +1,10 @@
+2006-03-21  Dave Morrison  <[EMAIL PROTECTED]>
+
+       * bootstrap.sh: generate a new FinkVersion.pm on every bootstrap run
+       * bootstrap.pl: find the default name for the binary distribution
+       using the new default_binary_version function from FinkVersion.pm
+       * BINDISTS: obsolete
+
 2006-03-19  Dave Vasilevsky  <[EMAIL PROTECTED]>
 
        * lockwait.in: Fix faulty logic.



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Fink-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to