https://bugzilla.novell.com/show_bug.cgi?id=483648 User ma@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=483648#c12 --- Comment #12 from Michael Andres <ma@novell.com> 2009-03-19 10:09:12 MST --- Maybe this way: ;) You (Pkg::) do not need to reset transactions set by the solver, even if you change any solver flag like 'onlyRequires'. Just solve again. Only if you (Pkg::) explicitly selected some packages/patches, and later must undo this and go back to the initial state, you'd need to use SaveState/RestoreState. Because this restores the softlocks. Problem with the current implementation is that you can not nest the calls. RestoreState always restores the last state that was saved. If you save in order to restore later, and then call some piece of code that also saves, you will later not restore your state, but the other one. So if you must undo Pkg:: changes vis Save/Restore, then we should implement some SaveState/RestoreState that is nestable in libzypp. Any saved state will get some id, and you will later need this id to denote the state to be restored. This will be done for 11.2. If you urgently need it, or it needs to be backported to 11.1 as well, tell me. -- 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.