[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bacula-commits
Subject:    [Bacula-commits] git: Bacula Documentation branch, master,
From:       "Eric Bollengier" <ricozz () users ! sourceforge ! net>
Date:       2009-11-23 16:26:30
Message-ID: E1NCbkF-0005Nm-Ny () sfp-scmshell-1 ! v30 ! ch3 ! sourceforge ! com
[Download RAW message or body]

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Bacula Documentation".

The branch, master has been updated
       via  710dd41ca899be43da8e700a14ef598ad15b2055 (commit)
      from  c816cd02a3040949ca4507d32f8e69a729826a3a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 710dd41ca899be43da8e700a14ef598ad15b2055
Author: Eric Bollengier <eric@eb.homelinux.org>
Date:   Mon Nov 23 17:26:46 2009 +0100

    update sourceforge to bacula.org download script

-----------------------------------------------------------------------

Summary of changes:
diff --git a/docs/tools/sf2bacula_downloads.pl b/docs/tools/sf2bacula_downloads.pl
index 23e2dc1..57a78a0 100755
--- a/docs/tools/sf2bacula_downloads.pl
+++ b/docs/tools/sf2bacula_downloads.pl
@@ -51,11 +51,6 @@ while (my $l = <FP>)
 {
     #                                         cat   vers  file
     if ($l =~ m!href="(/projects/bacula/files/(.+?)/(.+?)/(.+?)/download)"!) {
-        if ($cur && $cur->{date} && !exists $seen{$cur->{file}}) {
-            push @{$cats{$cur->{cat}}}, $cur;
-            $seen{$cur->{file}} = 1;
-        }
-
         $cur = {
             dl  => $1,
             cat => $2,
@@ -65,7 +60,7 @@ while (my $l = <FP>)
     }
 
     # the size and the date are just after
-    if ($l =~ m!<td>([\d\.]+ [KMG]B)</td>!) {
+    if ($cur && $l =~ m!<td>([\d\.]+ [KMG]B)</td>!) {
         $cur->{size} = $1;
         do {
             $l = <FP>;
@@ -73,6 +68,13 @@ while (my $l = <FP>)
                 $cur->{date} = $1;
             }
         } while (!$cur->{date});
+
+        # once we have a full $cur element, we can store it
+        if (!exists $seen{$cur->{file}}) {
+            push @{$cats{$cur->{cat}}}, $cur;
+            $seen{$cur->{file}} = 1;
+            $cur = undef;
+        }
     }
 }
 close(FP);


hooks/post-receive
-- 
Bacula Documentation

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Bacula-commits mailing list
Bacula-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-commits
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic