[yast-commit] r59904 - in /trunk/backup: package/yast2-backup.changes src/backup.ycp
Author: locilka Date: Wed Dec 2 16:18:27 2009 New Revision: 59904 URL: http://svn.opensuse.org/viewcvs/yast?rev=59904&view=rev Log: - Fixed Mode when running in cron, 'commandline' is used instead of 'testsuite' (bnc #548427). Modified: trunk/backup/package/yast2-backup.changes trunk/backup/src/backup.ycp Modified: trunk/backup/package/yast2-backup.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/backup/package/yast2-backup.changes?rev=59904&r1=59903&r2=59904&view=diff ============================================================================== --- trunk/backup/package/yast2-backup.changes (original) +++ trunk/backup/package/yast2-backup.changes Wed Dec 2 16:18:27 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.19.0 ------------------------------------------------------------------- Modified: trunk/backup/src/backup.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/backup/src/backup.ycp?rev=59904&r1=59903&r2=59904&view=diff ============================================================================== --- trunk/backup/src/backup.ycp (original) +++ trunk/backup/src/backup.ycp Wed Dec 2 16:18:27 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