Update of /cvsroot/fink/fink/perlmod/Fink
In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv8851

Modified Files:
      Tag: selfupdate_classes
        ChangeLog Engine.pm 
Log Message:
Fix call to Fink::SelfUpdate::last_done


Index: Engine.pm
===================================================================
RCS file: /cvsroot/fink/fink/perlmod/Fink/Engine.pm,v
retrieving revision 1.398.2.2
retrieving revision 1.398.2.3
diff -u -d -r1.398.2.2 -r1.398.2.3
--- Engine.pm   20 Mar 2007 16:26:17 -0000      1.398.2.2
+++ Engine.pm   21 Mar 2007 04:05:56 -0000      1.398.2.3
@@ -1589,14 +1589,15 @@
        if ($config->param("SelfUpdateMethod") ne "point") {
                my $up_to_date_text;
 
-               my ($method, $timestamp) = &Fink::SelfUpdate::last_done;
-               if (defined $method) {
+               require Fink::SelfUpdate;
+               my ($method, $timestamp, $data) = &Fink::SelfUpdate::last_done;
+               if ($timestamp) {
                        my $age = (time-$timestamp) / (60*60*24);  # days since 
last selfupdate
                        if ($age > 14) {
                                $up_to_date_text = "your info file index has 
not been updated for " . int($age) . " days.";
                        }
                } else {
-                       $up_to_date_text = "unable to determine last selfupdate 
time.\n";
+                       $up_to_date_text = "unable to determine last selfupdate 
time.";
                }
 
                if (defined $up_to_date_text) {

Index: ChangeLog
===================================================================
RCS file: /cvsroot/fink/fink/perlmod/Fink/ChangeLog,v
retrieving revision 1.1439.2.24
retrieving revision 1.1439.2.25
diff -u -d -r1.1439.2.24 -r1.1439.2.25
--- ChangeLog   21 Mar 2007 03:00:44 -0000      1.1439.2.24
+++ ChangeLog   21 Mar 2007 04:05:56 -0000      1.1439.2.25
@@ -1,3 +1,7 @@
+2007-03-21  Daniel Macks  <[EMAIL PROTECTED]>
+
+       * Engine.pm: Fix use of SU::last_done
+
 2007-03-20  Daniel Macks  <[EMAIL PROTECTED]>
 
        * SelfUpdate.pm: Offload plugin-detection into _plugins function


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to