⌈⌋ branch:  freshcode


Check-in [6b2e4d3950]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
SHA1:6b2e4d3950852a4518b8e13bd63058ac9c381b32
Date: 2015-05-15 19:07:40
User: mario
Comment:Filter duplicate entries from SF.net file feed.
Tags And Properties
  • branch=trunk inherited from [82405bb421]
  • sym-trunk inherited from [82405bb421]
Context
2015-06-20
03:32
[9e2363af88] Change minimum `name` length to 2…33 (user: mario, tags: trunk)
2015-05-15
19:07
[6b2e4d3950] Filter duplicate entries from SF.net file feed. (user: mario, tags: trunk)
2015-04-29
20:53
[570f97a5af] Summarized changes directly from /changelog (user: mario, tags: trunk)
Changes

Changes to cron.daily/news_feeds.php.

35
36
37
38
39
40
41

42
43
44
45
46
47
48
..
62
63
64
65
66
67
68






69
70
71
72
73
74
75
    "kdeapps,5" => "http://www.kde.org/dot/kde-apps-content.rdf",
    "qtapps,4" => "http://qt-apps.org/qt-apps-content.rdf",
    "cliapps,3" => "http://cli-apps.org/cli-apps-content.rdf",
);
$filter = 
    "/Please 'report' off-topic|namelessrom|machomebrew/"
;


#-- Traverse and collect entries
foreach ($feeds as $name=>$url) {

    // data
    list($name, $max) = str_getcsv($name);
    $output = "";
................................................................................

        # per feed
        switch ($name) {

            // Extract project base names and version numbers
            case "sourceforge":
                if (preg_match("~^(http://sourceforge.net/projects/(\w+))/files/.+?(\d+(\.\d+)+([-_. ](rc|beta|alpha|dev)([-._]?\d[.\d]*)?)?).+?/download$~", urldecode($item->link), $m)) {






                    $output .= "<a class=\"feed-$name\" href=\"$m[1]\">$m[2] <em>$m[3]</em></a>\n";
                    $i++;
                }
                break;

            // Extract project base names and version numbers
            case "distrowatch":







>







 







>
>
>
>
>
>







35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
..
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
    "kdeapps,5" => "http://www.kde.org/dot/kde-apps-content.rdf",
    "qtapps,4" => "http://qt-apps.org/qt-apps-content.rdf",
    "cliapps,3" => "http://cli-apps.org/cli-apps-content.rdf",
);
$filter = 
    "/Please 'report' off-topic|namelessrom|machomebrew/"
;
$seen = array();

#-- Traverse and collect entries
foreach ($feeds as $name=>$url) {

    // data
    list($name, $max) = str_getcsv($name);
    $output = "";
................................................................................

        # per feed
        switch ($name) {

            // Extract project base names and version numbers
            case "sourceforge":
                if (preg_match("~^(http://sourceforge.net/projects/(\w+))/files/.+?(\d+(\.\d+)+([-_. ](rc|beta|alpha|dev)([-._]?\d[.\d]*)?)?).+?/download$~", urldecode($item->link), $m)) {
                    if (in_array($m[1], $seen)) {
                        continue;
                    }
                    else {
                        $seen[] = $m[1];
                    }
                    $output .= "<a class=\"feed-$name\" href=\"$m[1]\">$m[2] <em>$m[3]</em></a>\n";
                    $i++;
                }
                break;

            // Extract project base names and version numbers
            case "distrowatch":