-------------------------------------------------------------------
+Wed Apr 13 16:35:48 CEST 2016 - ma@suse.de
+
+- Fix testing for '-- download*' options (bsc#956480)
+- version 1.11.54
+
+-------------------------------------------------------------------
Mon Mar 14 11:12:35 CET 2016 - ma@suse.de
- versioncmp: don't check for zypp lock (bsc#970575)
try
{
- if (zypper.cOpts().find("download-only") != zypper.cOpts().end())
+ if ( get_download_option( zypper, true ) == DownloadOnly )
{
God->provideSrcPackage(srcpkg).resetDispose();
void solve_and_commit (Zypper & zypper)
{
bool need_another_solver_run = true;
+ bool dryRunEtc = zypper.cOpts().count("dry-run") || ( get_download_option( zypper, true ) == DownloadOnly );
do
{
// CALL SOLVER
gData.show_media_progress_hack = false;
gData.entered_commit = false;
- if ( !result.allDone() && !( ( copts.count("dry-run") || zypper.cOpts().count("download-only") ) && result.noError() ) )
+ if ( !result.allDone() && !( dryRunEtc && result.noError() ) )
{ zypper.setExitCode( result.attemptToModify() ? ZYPPER_EXIT_ERR_COMMIT : ZYPPER_EXIT_ERR_ZYPP ); } // error message comes later....
MIL << endl << "DONE" << endl;
}
// check for running services (fate #300763)
- if ( ! ( zypper.cOpts().count("download-only") || zypper.cOpts().count("dry-run") )
- && ( summary.packagesToRemove()
- || summary.packagesToUpgrade()
- || summary.packagesToDowngrade() ) )
+ if ( !dryRunEtc
+ && ( summary.packagesToRemove() || summary.packagesToUpgrade() || summary.packagesToDowngrade() ) )
{
notify_processes_using_deleted_files(zypper);
}