Package: libxml-feed-perl
Version: 0.08-1
Severity: normal

Working with Jeff Waugh's feed, I noticed that XML::Feed fails to get
any dates from it. The feed is atom and the dates look fine:

<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom";
      xml:lang="en"
      
xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule";
>

<updated>2006-07-28T13:03:16Z</updated>

                <published>2006-07-28T09:36:43Z</published>
                <updated>2006-07-28T09:39:53Z</updated>

(Full feed attached as index.html.)

Seems that XML::Feed::Atom does not look for the right xml element
names. Instead of looking for updated and published elements, it looks
for "modified" and "issued" elements. Are those old names from an earlier
version of atom? RFC 4287 uses the updated and published elements.

With the attached patch, it can now parse this feed's dates, and should still
support any feeds out there using the other tag names. Please apply as
soon as you can, this is breaking my aggregator. :-)

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-1-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages libxml-feed-perl depends on:
ii  libclass-errorhandler-perl  0.01-2       Base class for error handling
ii  libdatetime-format-mail-per 0.2901-2     Convert between DateTime and RFC28
ii  libdatetime-format-w3cdtf-p 0.04-2       Parse and format W3CDTF datetime s
ii  libdatetime-perl            1:0.2901-1.1 perl DateTime - Reference implemen
ii  libfeed-find-perl           0.06-2       Syndication feed auto-discovery
ii  libhtml-parser-perl         3.55-1       A collection of modules that parse
ii  liburi-fetch-perl           0.06-1       Smart URI fetching/caching
ii  liburi-perl                 1.35-2       Manipulates and accesses URI strin
ii  libwww-perl                 5.805-1      WWW client/server library for Perl
ii  libxml-atom-perl            0.16a-0.1    Atom feed and API implementation
ii  libxml-rss-perl             1.05-1       Perl module for managing RSS (RDF 
ii  perl                        5.8.8-6      Larry Wall's Practical Extraction 

libxml-feed-perl recommends no packages.

-- no debconf information

-- 
see shy jo
Title: eighty-eight miles per hour
where we're going, we don't need roads... http://perkypants.org/blog/ 2006-07-28T13:03:16Z Copyright 2006 WordPress http://creativecommons.org/licenses/by-sa/2.5/ jdub <![CDATA[ Ubuntu: Seriously Secure ]]> http://perkypants.org/blog/2006/07/28/ubuntu-seriously-secure/ 2006-07-28T09:36:43Z 2006-07-28T09:39:53Z More press coverage about Ubuntu’s excellent security record, taking out the top score in SearchOpenSource.com’s comparison. Not long ago, LWN gave it top billing in their analysis.

The bottom line is that even this informal analysis shows there are definitely differences in how fast Linux distributions develop and issue security patches. Security managers should keep that in mind when their organizations are in the process of selecting a version of Linux. Timeliness of security updates may prove to be a key issue that differentiates manufacturers of otherwise-similar operating systems.

Martin Pitt, Ubuntu’s security czar, flat out rocks!

]]>
http://creativecommons.org/licenses/by-sa/2.5/
jdub <![CDATA[ “Evil” is a bad place to start the healing ]]> http://perkypants.org/blog/2006/07/28/evil-is-a-bad-place-to-start-the-healing/ 2006-07-27T21:12:33Z 2006-07-28T13:03:16Z Zaheer, I continue to defend freedom of speech on Planet GNOME, in spite of many complaints now and in the past about various blogs — including my own, on occasions. Your posts about the situation between Israel and Lebanon are very serious examples of the (sometimes pretty crazy) things people complain to me about. But they’re yours, and belong here on Planet GNOME, which you’ve accepted as a very direct audience for your blog.

In your latest post, you ask, Don’t you see how evil Israel is?

I’d say that perhaps their leadership has been foolish, inappropriately violent, morally bankrupt and self-destructive, but I wouldn’t say evil. Characterising an enemy’s behaviour as evil means that you are putting yourself in absolute opposition to them, unwilling to sympathise or empathise with their position, and totally dismissing the possibility that a peaceful resolution could be made between philosophies and beliefs. In some cases, that is actually true, but the word is bandied about far too often for us to use it in a realistic way.

I hope you don’t actually think that Israel — the country and its people — is evil, because I think you’re far too reasonable to think that the situation is ultimately a zero sum game.

]]>
http://creativecommons.org/licenses/by-sa/2.5/
jdub <![CDATA[ QoTD: Dave Miller ]]> http://perkypants.org/blog/2006/07/28/qotd-dave-miller/ 2006-07-27T21:11:24Z 2006-07-27T21:11:24Z “[Reworking the core tuple ID used for netfilter lookups] would be a radical departure from the present netfilter mechanisms, and would require redoing the userspace tools. Rusty says the world be damned and let’s do it if necessary! This guy is quite inspirational :) — Dave Miller, on the status of netchannels

Suggestions for suitable punishments we can dole out to Rusty at linux.conf.au 2007 in the comments, please.

]]>
http://creativecommons.org/licenses/by-sa/2.5/
jdub <![CDATA[ O’Reilly Radar vs. School Girls ]]> http://perkypants.org/blog/2006/07/27/oreilly-radar-vs-school-girls/ 2006-07-26T22:07:36Z 2006-07-27T00:08:15Z I managed to limit myself to a ten minute speech about Ubuntu at the O’Reilly Radar Executive Briefing yesterday, as part of Tim’s Spotlight: Who’s on the O’Reilly Open Source Radar? short presentation session. I received quite a bit of positive feedback about it, and indeed, the word awesome was uttered once or twice… But I’m really looking forward to getting an awesome from 2300 school girls. That’s gotta be where it’s at.

]]>
http://creativecommons.org/licenses/by-sa/2.5/
jdub <![CDATA[ links for 2006-07-15 ]]> http://perkypants.org/blog/2006/07/16/links-for-2006-07-15/ 2006-07-15T22:19:45Z 2006-07-15T22:19:45Z
  • Thanks to the Google Summer of Code, Ricardo Correia is hacking up a storm bringing ZFS to Linux… via FUSE! Fearless. ZFS and Linux — two great tastes that taste great together!
  • ]]>
    http://creativecommons.org/licenses/by-sa/2.5/
    jdub <![CDATA[ Swimming upstream ]]> http://perkypants.org/blog/2006/07/15/swimming-upstream/ 2006-07-14T21:48:55Z 2006-07-14T22:10:59Z Mark has said that when the opportunity to fulfill almost any dream became available to him, his first thought was “go to space”… quickly followed by the realisation that if he didn’t make it happen, he’d spend the rest of his life wondering what could have been, or worse, hating himself for letting it pass by. I’ve also heard him say, many times now, “do what you love”.

    No, I’m not going to space. But I’ve stung myself with a similar dilemma — what if “do what you love” means taking bare-knuckled, stomach-churning risk head on? There’s only one answer that I know I’ll be able to live with: DO IT. POP THE TRUNK.

    So today, I resigned from Canonical. I finish up at the end of the month.

    It seems like an insane time to step off the merry-go-round, considering the ever-rising crescendo in the Ubuntu community, and the incredible progress I have been privileged to watch within Canonical — the juggernaut is in fifth gear, heaving and chomping at the bit to shift up to sixth.

    So, why now? I’m excited about Ubuntu, passionate about its mission, confident in its future, and have thoroughly enjoyed being part of it from the very beginning… But ultimately, my heart lies with another, and I have to take that chance, face that risk, while my family commitments and responsibilities allow it. (To avoid any confusion this will inevitably bring — no, Pia is not pregnant! Stop asking that!)

    What’s next? Swimming upstream.

    ]]>
    http://creativecommons.org/licenses/by-sa/2.5/
    jdub <![CDATA[ QoTD: Stormy Peters ]]> http://perkypants.org/blog/2006/07/15/qotd-stormy-peters/ 2006-07-14T18:56:12Z 2006-07-14T18:56:12Z “I get asked a lot how I got involved in open source and why I’m such a big fan. While the why I’m such a big fan has a long history in how I view software, technology and society, the how I got involved in open source and so quickly discovered what a great community it is is all due to the GNOME community.” — Stormy Peters on joining the community

    I probably say it all too often here, but this is a familiar story for many GNOMErs. With such a fantastic community of fun, smart and committed people, it is extremely challenging to resist GNOME’s unique gravitational pull.

    ]]>
    http://creativecommons.org/licenses/by-sa/2.5/
    jdub <![CDATA[ QoTD: Dave Rosenberg ]]> http://perkypants.org/blog/2006/07/14/qotd-dave-rosenberg/ 2006-07-14T00:56:51Z 2006-07-14T00:56:51Z “Forgive my inane ramblings but as we were driving home from downtown SF my wife and I spotted a crew of gentlemen wearing jeans and sportcoats and she applied the phrase ‘the business mullet’ for the combo. […] When I am at OSCON I will be taking count of the guilty parties.” — Dave Rosenberg and moongirl

    Shit! Now I have to get rid of two mullets.

    I’ll be at OSCON, speaking about building the Ubuntu community.

    ]]>
    http://creativecommons.org/licenses/by-sa/2.5/
    jdub <![CDATA[ Norman Walsh needs our love ]]> http://perkypants.org/blog/2006/07/14/norman-walsh-needs-our-love/ 2006-07-13T23:29:56Z 2006-07-13T23:29:56Z Norman Walsh — esteemed godfather of Docbook — gets very cranky with GNOME, ditches it for a while, but ultimately returns… because it just feels right.

    I can understand his frustration — gnome-screensaver has been flicking the hate switches for a lot of our traditional, tech-savvy users. I’m hearing about it a lot. It’s a great example of GNOME shipping software a teeny-weeny bit too early, building dependencies around it, and frustrating a bunch of our early adopters.

    So if anyone’s looking for a good way to make our early adopters and momentum users happier — and by “happier” I mean “kick arse” — give your love to gnome-screensaver today. Delight them with a bit of just works… and a bit of just works personalisation to boot!

    ]]>
    http://creativecommons.org/licenses/by-sa/2.5/
    jdub <![CDATA[ Congratulations, Stormy! ]]> http://perkypants.org/blog/2006/07/12/congratulations-stormy/ 2006-07-12T00:31:21Z 2006-07-12T03:45:52Z Congratulations from myself and the GNOME team — I hope you have a wonderful time in the next few months, years, and beyond! There are lots of babies on the way in GNOME and other FLOSS communities too… Seems we’re all growing up. Eeek! Nice to see things like Parent Hacks turning up as a result. ;-)

    Will miss you at OSCON, but for very good reasons!

    (For the GNOMies who don’t know Stormy, she was the HP representative to the GNOME Foundation for quite some time, and was always great at cutting to the chase and shining a light on what really mattered. Also, it was entertaining to have Stormy and Havoc at the same meetings.)

    ]]>
    http://creativecommons.org/licenses/by-sa/2.5/
    --- Atom.pm.orig        2006-07-30 11:46:29.000000000 -0400
    +++ /usr/share/perl5/XML/Feed/Atom.pm   2006-07-30 11:58:30.000000000 -0400
    @@ -59,7 +59,8 @@
         if (@_) {
             
    $feed->{atom}->modified(DateTime::Format::W3CDTF->format_datetime($_[0]));
         } else {
    -        iso2dt($feed->{atom}->modified);
    +        return iso2dt($feed->{atom}->modified) if $feed->{atom}->modified;
    +       return iso2dt($feed->{atom}->updated);
         }
     }
     
    @@ -162,7 +163,9 @@
         if (@_) {
             
    $entry->{entry}->issued(DateTime::Format::W3CDTF->format_datetime($_[0])) if 
    $_[0];
         } else {
    -        $entry->{entry}->issued ? iso2dt($entry->{entry}->issued) : undef;
    +       return iso2dt($entry->{entry}->issued) if $entry->{entry}->issued;
    +       return iso2dt($entry->{entry}->published) if $entry->{entry}->published;
    +       return undef;
         }
     }
     
    @@ -171,7 +174,9 @@
         if (@_) {
             
    $entry->{entry}->modified(DateTime::Format::W3CDTF->format_datetime($_[0])) if 
    $_[0];
         } else {
    -        $entry->{entry}->modified ? iso2dt($entry->{entry}->modified) : undef;
    +       return iso2dt($entry->{entry}->modified) if $entry->{entry}->modified;
    +       return iso2dt($entry->{entry}->updated) if $entry->{entry}->updated;
    +       return undef;
         }
     }
     
    

    Attachment: signature.asc
    Description: Digital signature

    Reply via email to