[Bug 709716] New: zypp::ChangeLog::date() broken
https://bugzilla.novell.com/show_bug.cgi?id=709716 https://bugzilla.novell.com/show_bug.cgi?id=709716#c0 Summary: zypp::ChangeLog::date() broken Classification: openSUSE Product: openSUSE 12.1 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: libzypp AssignedTo: zypp-maintainers@forge.provo.novell.com ReportedBy: rpmcruz@alunos.dcc.fc.up.pt QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20100101 Firefox/5.0 Hi guys, It looks like zypp::ChangeLog::date() is broken. If you go through the packages, printing the changelog dates, you always get the same date (31 December 1969) for every package. "rpm -q --changelog" seems to work fine. This bug has been detected in openSUSE 11.2 Milestone, Factory, and SLED 11 SP2 Beta 2. If it helps, the code in question is pretty much this: ZyppResObject zobj = sel.installed().zyppObj(); ZyppPackage zpkg = castZyppPackage (zobj); if (zpkg) { const std::list <zypp::ChangelogEntry> &logs = zpkg->changelog(); for (std::list <zypp::ChangelogEntry>::const_iterator it = logs.begin(); it != logs.end(); it++) { std::string date (it->date().asString()), changes (it->text()); std::cout << date << ": " << changes.substr(0,6) << "...\n"; } } It doesn't help to use another date format, like it->date().form("%d %B %Y"). Reproducible: Always -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=709716 https://bugzilla.novell.com/show_bug.cgi?id=709716#c1 Michael Andres <ma@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P2 - High --- Comment #1 from Michael Andres <ma@novell.com> 2011-08-02 13:51:52 CEST --- Thanks for finding this. It actually affects any integer array directly read from a rpm header. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=709716 https://bugzilla.novell.com/show_bug.cgi?id=709716#c2 Michael Andres <ma@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Michael Andres <ma@novell.com> 2011-08-02 14:14:20 CEST --- Fixed in libzypp-9.9.3 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com