[yast-commit] r59905 - in /branches/SuSE-Code-11-SP1-Branch/backup: package/yast2-backup.changes src/backup.ycp
Author: locilka Date: Wed Dec 2 16:19:42 2009 New Revision: 59905 URL: http://svn.opensuse.org/viewcvs/yast?rev=59905&view=rev Log: - Fixed Mode when running in cron, 'commandline' is used instead of 'testsuite' (bnc #548427). Modified: branches/SuSE-Code-11-SP1-Branch/backup/package/yast2-backup.changes branches/SuSE-Code-11-SP1-Branch/backup/src/backup.ycp Modified: branches/SuSE-Code-11-SP1-Branch/backup/package/yast2-backup.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/backup/package/yast2-backup.changes?rev=59905&r1=59904&r2=59905&view=diff ============================================================================== --- branches/SuSE-Code-11-SP1-Branch/backup/package/yast2-backup.changes (original) +++ branches/SuSE-Code-11-SP1-Branch/backup/package/yast2-backup.changes Wed Dec 2 16:19:42 2009 @@ -3,6 +3,8 @@ - Fixed infinite loop in case of old archives to keep set to zero (bnc #550996). +- Fixed Mode when running in cron, 'commandline' is used instead of + 'testsuite' (bnc #548427). - 2.17.7 ------------------------------------------------------------------- Modified: branches/SuSE-Code-11-SP1-Branch/backup/src/backup.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/backup/src/backup.ycp?rev=59905&r1=59904&r2=59905&view=diff ============================================================================== --- branches/SuSE-Code-11-SP1-Branch/backup/src/backup.ycp (original) +++ branches/SuSE-Code-11-SP1-Branch/backup/src/backup.ycp Wed Dec 2 16:19:42 2009 @@ -20,7 +20,7 @@ y2milestone(" *** Backup module started *** "); import "Wizard"; -//import "Mode"; +import "Mode"; import "Backup"; import "Report"; import "Sequencer"; @@ -135,6 +135,11 @@ y2milestone("Starting in cron mode"); Backup::cron_mode = true; + // BNC #548427: Mode acts like it was in a testsuite + // if it actually running in cron mode + y2milestone ("Adjusting Mode UI to: commandline"); + Mode::SetUI ("commandline"); + if (args[1]:nil != nil) { Backup::cron_profile = regexpsub(args[1]:"", "^[ \t]*profile[ \t]*=[ \t]*(.*)", "\\1"); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
locilka@svn.opensuse.org