Ladislav Slezak napsal(a):
Hi all,
I have added these new functions into PackageCallbacks.ycp (yast2-2.16.52):
RegisterEmptyProgressCallbacks() - registers empty callbacks RestorePreviousProgressCallbacks() - restores the previous registered callbacks ... The new functionality is used to fix bug #377919, but it might be useful in other modules/scripts.
Thanks a lot! :) I've just used these functions in installation scripts so I can handle installation progresses as I want. I hope it will also remove the unneeded second progress bar that appears for a very short time when initializing the installation repository. Hmm, anyway, how can I re-register another function for downloading a file? Image deployment downloads images if needed (Pkg::SourceProvideOptionalFile?) and I don't want pop-ups to appear there. Will is work to RegisterEmptyProgressCallbacks, RegisterMySpecialCallback and then RestorePreviousProgressCallbacks? Doesn't the RestorePreviousProgressCallbacks function have a bit confusing name :), previous? Bye Lukas