Author: rpmcruz
Date: Fri Jan 11 02:19:01 2008
New Revision: 43546
URL: http://svn.opensuse.org/viewcvs/yast?rev=43546&view=rev
Log:
* src/YGPackageSelector.cc: changed title to "Patch Selector" for
online update.
* src/yzyppwrapper.cc: fixed changelog (markup typo :/). changed
date format.
Modified:
trunk/gtk/ChangeLog
trunk/gtk/src/YGPackageSelector.cc
trunk/gtk/src/yzyppwrapper.cc
Modified: trunk/gtk/ChangeLog
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/ChangeLog?rev=43546&r1=43545&r2=43546&view=diff
==============================================================================
--- trunk/gtk/ChangeLog (original)
+++ trunk/gtk/ChangeLog Fri Jan 11 02:19:01 2008
@@ -1,3 +1,11 @@
+2007-01-10 Ricardo Cruz
+
+ * src/YGPackageSelector.cc: changed title to "Patch Selector" for
+ online update.
+
+ * src/yzyppwrapper.cc: fixed changelog (markup typo :/). changed
+ date format.
+
2007-01-08 Ricardo Cruz
* src/YGUI.h/cc: keep up with libyui: file dialogs moved to YApplication.
Modified: trunk/gtk/src/YGPackageSelector.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/YGPackageSelector.cc?rev=43546&r1=43545&r2=43546&view=diff
==============================================================================
--- trunk/gtk/src/YGPackageSelector.cc (original)
+++ trunk/gtk/src/YGPackageSelector.cc Fri Jan 11 02:19:01 2008
@@ -1600,7 +1600,8 @@
YGtkWizard *wizard = YGTK_WIZARD (getWidget());
ygtk_wizard_set_header_icon (wizard, window,
THEMEDIR "/icons/22x22/apps/yast-software.png");
- ygtk_wizard_set_header_text (wizard, window, _("Package Selector"));
+ ygtk_wizard_set_header_text (wizard, window,
+ onlineUpdateMode() ? _("Patch Selector") : _("Package Selector"));
ygtk_wizard_set_help_text (wizard, "");
ygtk_wizard_set_abort_button_label (wizard, _("_Cancel"));
Modified: trunk/gtk/src/yzyppwrapper.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/yzyppwrapper.cc?rev=43546&r1=43545&r2=43546&view=diff
==============================================================================
--- trunk/gtk/src/yzyppwrapper.cc (original)
+++ trunk/gtk/src/yzyppwrapper.cc Fri Jan 11 02:19:01 2008
@@ -356,12 +356,14 @@
const std::list zypp::ChangelogEntry &changelogList = package->changelog();
for (std::list zypp::ChangelogEntry::const_iterator it = changelogList.begin();
it != changelogList.end(); it++) {
- std::string author = it->author(), changes = it->text();
+ std::string date (it->date().form ("%d %B %Y")), author (it->author()),
+ changes (it->text());
YGUtils::escapeMarkup (author);
YGUtils::escapeMarkup (changes);
YGUtils::replace (changes, "\n", 1, "<br>");
- text += it->date().asString() + author + ":<br>"
- + "<blockquote>" + changes + "</blockqute>";
+ if (author.compare (0, 2, "- ", 2) == 0) // zypp returns a lot of author strings as
+ author.erase (0, 2); // "- author". wtf?
+ text += date + " (" + author + "):<br><blockquote>" + changes + "</blockquote>";
}
}
return text;
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org