[yast-commit] r59903 - in /branches/SuSE-Linux-11_2-Branch/backup: package/yast2-backup.changes src/backup.ycp
Author: locilka Date: Wed Dec 2 16:16:30 2009 New Revision: 59903 URL: http://svn.opensuse.org/viewcvs/yast?rev=59903&view=rev Log: - Fixed Mode when running in cron, 'commandline' is used instead of 'testsuite' (bnc #548427). Modified: branches/SuSE-Linux-11_2-Branch/backup/package/yast2-backup.changes branches/SuSE-Linux-11_2-Branch/backup/src/backup.ycp Modified: branches/SuSE-Linux-11_2-Branch/backup/package/yast2-backup.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Linux-11_2-Branch/backup/package/yast2-backup.changes?rev=59903&r1=59902&r2=59903&view=diff ============================================================================== --- branches/SuSE-Linux-11_2-Branch/backup/package/yast2-backup.changes (original) +++ branches/SuSE-Linux-11_2-Branch/backup/package/yast2-backup.changes Wed Dec 2 16:16:30 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.18.5 ------------------------------------------------------------------- Modified: branches/SuSE-Linux-11_2-Branch/backup/src/backup.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Linux-11_2-Branch/backup/src/backup.ycp?rev=59903&r1=59902&r2=59903&view=diff ============================================================================== --- branches/SuSE-Linux-11_2-Branch/backup/src/backup.ycp (original) +++ branches/SuSE-Linux-11_2-Branch/backup/src/backup.ycp Wed Dec 2 16:16:30 2009 @@ -20,7 +20,7 @@ y2milestone(" *** Backup module started *** "); import "Wizard"; -//import "Mode"; +import "Mode"; import "Backup"; import "Report"; import "Sequencer"; @@ -146,6 +146,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