#
SET(VERSION_MAJOR "1")
SET(VERSION_MINOR "12")
-SET(VERSION_PATCH "13")
+SET(VERSION_PATCH "14")
-# LAST RELEASED: 1.12.13
+# LAST RELEASED: 1.12.14
#=======
.\" Title: zypper
.\" Author: [see the "AUTHORS" section]
.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
-.\" Date: 09/01/2015
+.\" Date: 09/08/2015
.\" Manual: ZYPPER
.\" Source: SUSE Linux
.\" Language: English
.\"
-.TH "ZYPPER" "8" "09/01/2015" "SUSE Linux" "ZYPPER"
+.TH "ZYPPER" "8" "09/08/2015" "SUSE Linux" "ZYPPER"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
This command is similar to
\fBzypper update \-t patch\fR\&.
.PP
+\fB\-\-updatestack\-only\fR
+.RS 4
+Install only patches which affect the package management itself and exit\&.
+.RE
+.PP
\fB\-b\fR, \fB\-\-bugzilla\fR \fI#\fR[,\fI\&...\fR]
.RS 4
Install patch fixing a Bugzilla issue specified by number\&. Use
This command is similar to *zypper update -t patch*.
+
--
+ *--updatestack-only*::
+ Install only patches which affect the package management itself and exit.
+
*-b*, *--bugzilla* '#'[,'...']::
Install patch fixing a Bugzilla issue specified by number. Use *list-patches --bugzilla* command to get a list of available needed patches for specific issues.
-------------------------------------------------------------------
+Tue Sep 8 19:01:25 CEST 2015 - ma@suse.de
+
+- patch --updatestack-only: Install only patches which affect the
+ package management itself (FATE#319407)
+- version 1.12.14
+
+-------------------------------------------------------------------
+Sun Sep 6 01:15:00 CEST 2015 - ma@suse.de
+
+- Update sle-zypper-po.tar.bz2
+
+-------------------------------------------------------------------
+Sun Sep 6 01:13:26 CEST 2015 - ma@suse.de
+
+- Update zypper-po.tar.bz2
+
+-------------------------------------------------------------------
+Thu Sep 3 01:14:04 CEST 2015 - ma@suse.de
+
+- Update zypper-po.tar.bz2
+
+-------------------------------------------------------------------
Tue Sep 1 18:26:11 CEST 2015 - ma@suse.de
- man: mention new zypp.conf solver.dupAllow* config options
DBG << "going to mark needed patches for installation" << endl;
// search twice: if there are none with restartSuggested(), retry on all
+ // unless --updatestack-only.
// (in the first run, ignore_pkgmgmt == 0, in the second it is 1)
bool any_marked = false;
bool dateLimit = ( _opts.cliMatchPatch._dateBefore != Date() );
any_marked = true;
}
- if (any_marked && !ignore_pkgmgmt)
- MIL << "got some pkgmgmt patches, will install these first" << endl;
+ if ( ! ignore_pkgmgmt ) // just checked the update stack
+ {
+ if ( any_marked )
+ MIL << "got some pkgmgmt patches, will install these first" << endl;
+
+ if ( Zypper::instance()->cOpts().count("updatestack-only") )
+ {
+ MIL << "updatestack-only: will stop here!" << endl;
+ break;
+ }
+ }
}
}
% old_r
% new_r );
}
+
+ inline std::string dashdash( std::string optname_r )
+ { return std::move(optname_r.insert( 0, "--" )); }
+
} //namespace
///////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////
{
static struct option update_options[] = {
{"repo", required_argument, 0, 'r'},
+ {"updatestack-only", no_argument, 0, 0 },
{"skip-interactive", no_argument, 0, 0 },
{"with-interactive", no_argument, 0, 0 },
{"auto-agree-with-licenses", no_argument, 0, 'l'},
{0, 0, 0, 0}
};
specific_options = update_options;
- _command_help = str::form(_(
+ _command_help = ( CommandHelpFormater()
+ << str::form(_(
"patch [options]\n"
"\n"
"Install all available needed patches.\n"
" --download Set the download-install mode. Available modes:\n"
" %s\n"
"-d, --download-only Only download the packages, do not install.\n"
- ), "only, in-advance, in-heaps, as-needed");
+ ), "only, in-advance, in-heaps, as-needed") )
+ .option("--updatestack-only", _("Install only patches which affect the package management itself.") )
+ ;
break;
}
return;
}
+ if ( copts.count("updatestack-only") )
+ {
+ for ( const char * opt : { "bugzilla", "bz", "cve" } )
+ {
+ if ( copts.count( opt ) )
+ {
+ out().error(str::form(_("Cannot use %s together with %s."),
+ dashdash("updatestack-only").c_str(),
+ dashdash(opt).c_str() ) );
+ setExitCode(ZYPPER_EXIT_ERR_INVALID_ARGS);
+ return;
+ }
+ }
+ }
+
bool skip_interactive = false;
if (copts.count("skip-interactive"))
{
}
// check for running services (fate #300763)
- if ( zypper.cOpts().find("download-only") == zypper.cOpts().end()
+ if ( ! ( zypper.cOpts().count("download-only") || zypper.cOpts().count("dry-run") )
&& ( summary.packagesToRemove()
|| summary.packagesToUpgrade()
|| summary.packagesToDowngrade() ) )
Obsoletes: y2pmsh
Provides: zypper(oldpackage)
+Provides: zypper(updatestack-only)
%description
Zypper is a command line tool for managing software. It can be used to add