[Bug 358871] New: Multi-line problem resolutions in zypper are not indented correctly

https://bugzilla.novell.com/show_bug.cgi?id=358871 Summary: Multi-line problem resolutions in zypper are not indented correctly Product: openSUSE 11.0 Version: Alpha 2 Platform: All OS/Version: openSUSE 11.0 Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: gp@novell.com QAContact: jsrain@novell.com Found By: Product Management Just seen while updating the consistent tree: ==== snip ==== Problem: OpenOffice_org-de-2.3.1.1-2.noarch requires OpenOffice_org = 2.3.1.1, but none of the providers can be installed Solution 1: Following actions will be done: do not install OpenOffice_org-2.3.99.2-2.x86_64 do not install OpenOffice_org-calc-2.3.99.2-2.x86_64 do not install OpenOffice_org-base-2.3.99.2-2.x86_64 do not install OpenOffice_org-draw-2.3.99.2-2.x86_64 do not install OpenOffice_org-filters-2.3.99.2-2.x86_64 do not install OpenOffice_org-pyuno-2.3.99.2-2.x86_64 do not install OpenOffice_org-writer-2.3.99.2-2.x86_64 do not install OpenOffice_org-math-2.3.99.2-2.x86_64 do not install OpenOffice_org-kde-2.3.99.2-2.x86_64 do not install OpenOffice_org-impress-2.3.99.2-2.x86_64 do not install OpenOffice_org-mailmerge-2.3.99.2-2.x86_64 Solution 2: deinstallation of OpenOffice_org-de-2.3.1.1-2.noarch Choose the number, (s)kip, (r)etry or (c)ancel> c ==== snip ==== This bug is *not* about the problem as such but the fact that all except for the first "do not install" lines of Solution 1 are not idented. Looks like somewhere a "\n" needs to become "\n " or so? -- 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=358871 User jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=358871#c2 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kmachalkova@novell.com, sh@novell.com Status|NEW |NEEDINFO Info Provider| |schubi@novell.com --- Comment #2 from Ján Kupec <jkupec@novell.com> 2008-02-05 08:39:28 MST --- This is a WIP, the solver texts are currently changing a lot. However, i'm not sure how is this supposed to be handled. Schubi, should the solver return the text preformatted, or should the apps reformat it as they see fit? I guess the qt and ncurses have means to ident the text easily, i don't know about such formatting toolkits for plain console text. -- 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=358871 User kmachalkova@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=358871#c3 --- Comment #3 from Katarina Machalkova <kmachalkova@novell.com> 2008-02-05 08:59:00 MST --- Qt and ncurses certainly have some means of formatting the text but this would again ended up in code duplication across UIs and zypper, if we want to have somehow unified formatting everywhere. Solver messages should be properly indented and contain reasonably placed line breaks so each app that wants to display them does not need to come up with its own formatting algorithm. In this particular case, using "\n " instead of "\n" is ideal for ncurses, too. But I'm not sure if zypp::ProblemSolutionList->details() is some list of strings, or just one long string with \n's -- 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=358871 User schubi@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=358871#c4 Stefan Schubert <schubi@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |schubi@novell.com Status|NEEDINFO |NEW Info Provider|schubi@novell.com | --- Comment #4 from Stefan Schubert <schubi@novell.com> 2008-02-19 11:18:24 MST --- Yes, I can repeat it: Lösung 1: Following actions will be done: deinstallation of efont-unicode-0.4.2-113.noarch deinstallation of plotutils-2.5-94.i586 But all strings are without "\n ": SATResolver.cc(problems):780 deinstallation of efont-unicode-0.4.2-113.noarch SATResolver.cc(problems):780 deinstallation of plotutils-2.5-94.i586 SATResolver.cc(problems):780 deinstallation of ghostscript-fonts-std-8.15.4-3.i586 SATResolver.cc(problems):780 deinstallation of pwdutils-3.1.4-27.i586 Jano, could you please check it in the zypper ? Thanks. P.S.: Katarina you comment is correct. -- 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=358871 User jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=358871#c5 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Status Whiteboard| |in-svn --- Comment #5 from Ján Kupec <jkupec@novell.com> 2008-02-28 11:13:45 MST --- I managed to handle this with an identation hack: replaceAll(problemsolution.details(), "\n", "\n "). But the question remains: is there a better way to provide this data to the apps in order to present them? Maybe not. But this discussion is not for bugzilla, so i'll move it to sw-mgmt later. Fixed in svn, to be in zypper 0.10.2 -- 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=358871 User jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=358871#c6 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED Status Whiteboard|in-svn | --- Comment #6 from Ján Kupec <jkupec@novell.com> 2008-02-29 09:50:11 MST --- submitted -- 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=358871 User mls@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=358871#c7 Michael Schröder <mls@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mls@novell.com --- Comment #7 from Michael Schröder <mls@novell.com> 2008-02-29 16:20:34 MST --- (IMHO libzypp should return an array of strings instead of a single string with embedded newlines.) -- 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